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

Side by Side Diff: src/runtime/runtime-test.cc

Issue 1127313005: Revert of Add the concept of a V8 extras exports object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/runtime/runtime.h ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/runtime/runtime-utils.h" 10 #include "src/runtime/runtime-utils.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 return NULL; 357 return NULL;
358 } 358 }
359 359
360 360
361 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { 361 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) {
362 DCHECK(args.length() == 0); 362 DCHECK(args.length() == 0);
363 return Smi::FromInt(Natives::GetBuiltinsCount()); 363 return Smi::FromInt(Natives::GetBuiltinsCount());
364 } 364 }
365 365
366 366
367 RUNTIME_FUNCTION(Runtime_NativeExtrasCount) {
368 DCHECK(args.length() == 0);
369 return Smi::FromInt(ExtraNatives::GetBuiltinsCount());
370 }
371
372
373 // Returns V8 version as a string. 367 // Returns V8 version as a string.
374 RUNTIME_FUNCTION(Runtime_GetV8Version) { 368 RUNTIME_FUNCTION(Runtime_GetV8Version) {
375 HandleScope scope(isolate); 369 HandleScope scope(isolate);
376 DCHECK(args.length() == 0); 370 DCHECK(args.length() == 0);
377 371
378 const char* version_string = v8::V8::GetVersion(); 372 const char* version_string = v8::V8::GetVersion();
379 373
380 return *isolate->factory()->NewStringFromAsciiChecked(version_string); 374 return *isolate->factory()->NewStringFromAsciiChecked(version_string);
381 } 375 }
382 376
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 483 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
490 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 484 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
491 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 485 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
492 } 486 }
493 487
494 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 488 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
495 489
496 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 490 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
497 } 491 }
498 } // namespace v8::internal 492 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698