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

Side by Side Diff: test/cctest/cctest.h

Issue 892393003: Update harmony ObjectProtoToString() to 2/2/2015 spec (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add tests for non-string @@toStringTag in test-api.cc Created 5 years, 10 months 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
« no previous file with comments | « src/api.cc ('k') | test/cctest/test-api.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 static inline v8::Local<v8::Value> v8_num(double x) { 340 static inline v8::Local<v8::Value> v8_num(double x) {
341 return v8::Number::New(v8::Isolate::GetCurrent(), x); 341 return v8::Number::New(v8::Isolate::GetCurrent(), x);
342 } 342 }
343 343
344 344
345 static inline v8::Local<v8::String> v8_str(const char* x) { 345 static inline v8::Local<v8::String> v8_str(const char* x) {
346 return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), x); 346 return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), x);
347 } 347 }
348 348
349 349
350 static inline v8::Local<v8::Symbol> v8_symbol(const char* name) {
351 return v8::Symbol::New(v8::Isolate::GetCurrent(), v8_str(name));
352 }
353
354
350 static inline v8::Local<v8::Script> v8_compile(const char* x) { 355 static inline v8::Local<v8::Script> v8_compile(const char* x) {
351 return v8::Script::Compile(v8_str(x)); 356 return v8::Script::Compile(v8_str(x));
352 } 357 }
353 358
354 359
355 static inline v8::Local<v8::Script> v8_compile(v8::Local<v8::String> x) { 360 static inline v8::Local<v8::Script> v8_compile(v8::Local<v8::String> x) {
356 return v8::Script::Compile(x); 361 return v8::Script::Compile(x);
357 } 362 }
358 363
359 364
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 HandleAndZoneScope() {} 597 HandleAndZoneScope() {}
593 598
594 // Prefixing the below with main_ reduces a lot of naming clashes. 599 // Prefixing the below with main_ reduces a lot of naming clashes.
595 i::Zone* main_zone() { return &main_zone_; } 600 i::Zone* main_zone() { return &main_zone_; }
596 601
597 private: 602 private:
598 i::Zone main_zone_; 603 i::Zone main_zone_;
599 }; 604 };
600 605
601 #endif // ifndef CCTEST_H_ 606 #endif // ifndef CCTEST_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698