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

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

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased (w/ conflicts) 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/runtime/runtime-compiler.cc ('k') | src/runtime/runtime-function.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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 625
626 // Add the value being returned. 626 // Add the value being returned.
627 if (at_return) { 627 if (at_return) {
628 details->set(details_index++, *return_value); 628 details->set(details_index++, *return_value);
629 } 629 }
630 630
631 // Add the receiver (same as in function frame). 631 // Add the receiver (same as in function frame).
632 // THIS MUST BE DONE LAST SINCE WE MIGHT ADVANCE 632 // THIS MUST BE DONE LAST SINCE WE MIGHT ADVANCE
633 // THE FRAME ITERATOR TO WRAP THE RECEIVER. 633 // THE FRAME ITERATOR TO WRAP THE RECEIVER.
634 Handle<Object> receiver(it.frame()->receiver(), isolate); 634 Handle<Object> receiver(it.frame()->receiver(), isolate);
635 if (!receiver->IsJSObject() && shared->strict_mode() == SLOPPY && 635 if (!receiver->IsJSObject() && is_sloppy(shared->language_mode()) &&
636 !function->IsBuiltin()) { 636 !function->IsBuiltin()) {
637 // If the receiver is not a JSObject and the function is not a 637 // If the receiver is not a JSObject and the function is not a
638 // builtin or strict-mode we have hit an optimization where a 638 // builtin or strict-mode we have hit an optimization where a
639 // value object is not converted into a wrapped JS objects. To 639 // value object is not converted into a wrapped JS objects. To
640 // hide this optimization from the debugger, we wrap the receiver 640 // hide this optimization from the debugger, we wrap the receiver
641 // by creating correct wrapper object based on the calling frame's 641 // by creating correct wrapper object based on the calling frame's
642 // native context. 642 // native context.
643 it.Advance(); 643 it.Advance();
644 if (receiver->IsUndefined()) { 644 if (receiver->IsUndefined()) {
645 receiver = handle(function->global_proxy()); 645 receiver = handle(function->global_proxy());
(...skipping 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 return Smi::FromInt(isolate->debug()->is_active()); 2809 return Smi::FromInt(isolate->debug()->is_active());
2810 } 2810 }
2811 2811
2812 2812
2813 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { 2813 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) {
2814 UNIMPLEMENTED(); 2814 UNIMPLEMENTED();
2815 return NULL; 2815 return NULL;
2816 } 2816 }
2817 } 2817 }
2818 } // namespace v8::internal 2818 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-compiler.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698