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

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

Issue 1868963002: [builtins] Migrate String.prototype.charCodeAt and String.prototype.charAt to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo Created 4 years, 8 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
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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 RUNTIME_FUNCTION(Runtime_ThrowCalledNonCallable) { 425 RUNTIME_FUNCTION(Runtime_ThrowCalledNonCallable) {
426 HandleScope scope(isolate); 426 HandleScope scope(isolate);
427 DCHECK_EQ(1, args.length()); 427 DCHECK_EQ(1, args.length());
428 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 428 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
429 Handle<String> callsite = RenderCallSite(isolate, object); 429 Handle<String> callsite = RenderCallSite(isolate, object);
430 THROW_NEW_ERROR_RETURN_FAILURE( 430 THROW_NEW_ERROR_RETURN_FAILURE(
431 isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite)); 431 isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite));
432 } 432 }
433 433
434 RUNTIME_FUNCTION(Runtime_ThrowCalledOnNullOrUndefined) {
435 HandleScope scope(isolate);
436 DCHECK_EQ(1, args.length());
437 CONVERT_ARG_HANDLE_CHECKED(String, name, 0);
438 THROW_NEW_ERROR_RETURN_FAILURE(
439 isolate, NewTypeError(MessageTemplate::kCalledOnNullOrUndefined, name));
440 }
434 441
435 RUNTIME_FUNCTION(Runtime_ThrowConstructedNonConstructable) { 442 RUNTIME_FUNCTION(Runtime_ThrowConstructedNonConstructable) {
436 HandleScope scope(isolate); 443 HandleScope scope(isolate);
437 DCHECK_EQ(1, args.length()); 444 DCHECK_EQ(1, args.length());
438 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 445 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
439 Handle<String> callsite = RenderCallSite(isolate, object); 446 Handle<String> callsite = RenderCallSite(isolate, object);
440 THROW_NEW_ERROR_RETURN_FAILURE( 447 THROW_NEW_ERROR_RETURN_FAILURE(
441 isolate, NewTypeError(MessageTemplate::kNotConstructor, callsite)); 448 isolate, NewTypeError(MessageTemplate::kNotConstructor, callsite));
442 } 449 }
443 450
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 std::stringstream stats_stream; 491 std::stringstream stats_stream;
485 isolate->counters()->runtime_call_stats()->Print(stats_stream); 492 isolate->counters()->runtime_call_stats()->Print(stats_stream);
486 Handle<String> result = 493 Handle<String> result =
487 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str()); 494 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str());
488 isolate->counters()->runtime_call_stats()->Reset(); 495 isolate->counters()->runtime_call_stats()->Reset();
489 return *result; 496 return *result;
490 } 497 }
491 498
492 } // namespace internal 499 } // namespace internal
493 } // namespace v8 500 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698