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

Side by Side Diff: src/elements.cc

Issue 1540953004: [runtime] Rewrite Function.prototype.toString in C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typos. Created 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/elements.h" 5 #include "src/elements.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/conversions.h" 8 #include "src/conversions.h"
9 #include "src/factory.h" 9 #include "src/factory.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 421
422 422
423 static void TraceTopFrame(Isolate* isolate) { 423 static void TraceTopFrame(Isolate* isolate) {
424 StackFrameIterator it(isolate); 424 StackFrameIterator it(isolate);
425 if (it.done()) { 425 if (it.done()) {
426 PrintF("unknown location (no JavaScript frames present)"); 426 PrintF("unknown location (no JavaScript frames present)");
427 return; 427 return;
428 } 428 }
429 StackFrame* raw_frame = it.frame(); 429 StackFrame* raw_frame = it.frame();
430 if (raw_frame->is_internal()) { 430 if (raw_frame->is_internal()) {
431 Code* apply_builtin = isolate->builtins()->builtin( 431 Code* apply_builtin =
432 Builtins::kFunctionApply); 432 isolate->builtins()->builtin(Builtins::kFunctionPrototypeApply);
433 if (raw_frame->unchecked_code() == apply_builtin) { 433 if (raw_frame->unchecked_code() == apply_builtin) {
434 PrintF("apply from "); 434 PrintF("apply from ");
435 it.Advance(); 435 it.Advance();
436 raw_frame = it.frame(); 436 raw_frame = it.frame();
437 } 437 }
438 } 438 }
439 JavaScriptFrame::PrintTop(isolate, stdout, false, true); 439 JavaScriptFrame::PrintTop(isolate, stdout, false, true);
440 } 440 }
441 441
442 442
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 } 2385 }
2386 } 2386 }
2387 2387
2388 DCHECK(j == result_len); 2388 DCHECK(j == result_len);
2389 return result_array; 2389 return result_array;
2390 } 2390 }
2391 2391
2392 ElementsAccessor** ElementsAccessor::elements_accessors_ = NULL; 2392 ElementsAccessor** ElementsAccessor::elements_accessors_ = NULL;
2393 } // namespace internal 2393 } // namespace internal
2394 } // namespace v8 2394 } // namespace v8
OLDNEW
« src/debug/mirrors.js ('K') | « src/debug/mirrors.js ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698