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

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

Issue 1877263002: Revert of [builtins] Migrate String.prototype.charCodeAt and String.prototype.charAt to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-strings.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/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 }
441 434
442 RUNTIME_FUNCTION(Runtime_ThrowConstructedNonConstructable) { 435 RUNTIME_FUNCTION(Runtime_ThrowConstructedNonConstructable) {
443 HandleScope scope(isolate); 436 HandleScope scope(isolate);
444 DCHECK_EQ(1, args.length()); 437 DCHECK_EQ(1, args.length());
445 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 438 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
446 Handle<String> callsite = RenderCallSite(isolate, object); 439 Handle<String> callsite = RenderCallSite(isolate, object);
447 THROW_NEW_ERROR_RETURN_FAILURE( 440 THROW_NEW_ERROR_RETURN_FAILURE(
448 isolate, NewTypeError(MessageTemplate::kNotConstructor, callsite)); 441 isolate, NewTypeError(MessageTemplate::kNotConstructor, callsite));
449 } 442 }
450 443
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 std::stringstream stats_stream; 484 std::stringstream stats_stream;
492 isolate->counters()->runtime_call_stats()->Print(stats_stream); 485 isolate->counters()->runtime_call_stats()->Print(stats_stream);
493 Handle<String> result = 486 Handle<String> result =
494 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str()); 487 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str());
495 isolate->counters()->runtime_call_stats()->Reset(); 488 isolate->counters()->runtime_call_stats()->Reset();
496 return *result; 489 return *result;
497 } 490 }
498 491
499 } // namespace internal 492 } // namespace internal
500 } // namespace v8 493 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698