Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1906)

Side by Side Diff: src/utils.h

Issue 11597007: Rename LookupSymbol calls to use Utf8 or OneByte in names. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/scopes.cc ('k') | test/cctest/test-compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 public: 515 public:
516 explicit ScopedVector(int length) : Vector<T>(NewArray<T>(length), length) { } 516 explicit ScopedVector(int length) : Vector<T>(NewArray<T>(length), length) { }
517 ~ScopedVector() { 517 ~ScopedVector() {
518 DeleteArray(this->start()); 518 DeleteArray(this->start());
519 } 519 }
520 520
521 private: 521 private:
522 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedVector); 522 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedVector);
523 }; 523 };
524 524
525 #define STATIC_ASCII_VECTOR(x) \
526 v8::internal::Vector<const char>(x, ARRAY_SIZE(x)-1)
525 527
526 inline Vector<const char> CStrVector(const char* data) { 528 inline Vector<const char> CStrVector(const char* data) {
527 return Vector<const char>(data, StrLength(data)); 529 return Vector<const char>(data, StrLength(data));
528 } 530 }
529 531
530 inline Vector<char> MutableCStrVector(char* data) { 532 inline Vector<char> MutableCStrVector(char* data) {
531 return Vector<char>(data, StrLength(data)); 533 return Vector<char>(data, StrLength(data));
532 } 534 }
533 535
534 inline Vector<char> MutableCStrVector(char* data, int max) { 536 inline Vector<char> MutableCStrVector(char* data, int max) {
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 1034
1033 // Ever FunctionState starts with this id. 1035 // Ever FunctionState starts with this id.
1034 static const int kFirstUsableId = 4; 1036 static const int kFirstUsableId = 4;
1035 1037
1036 int id_; 1038 int id_;
1037 }; 1039 };
1038 1040
1039 } } // namespace v8::internal 1041 } } // namespace v8::internal
1040 1042
1041 #endif // V8_UTILS_H_ 1043 #endif // V8_UTILS_H_
OLDNEW
« no previous file with comments | « src/scopes.cc ('k') | test/cctest/test-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698