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

Side by Side Diff: src/x87/lithium-codegen-x87.cc

Issue 1029643002: Move CompilationInfo::this_has_uses to HGraph::this_has_uses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-12
Patch Set: Created 5 years, 9 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/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 #ifdef DEBUG 103 #ifdef DEBUG
104 if (strlen(FLAG_stop_at) > 0 && 104 if (strlen(FLAG_stop_at) > 0 &&
105 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { 105 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) {
106 __ int3(); 106 __ int3();
107 } 107 }
108 #endif 108 #endif
109 109
110 // Sloppy mode functions and builtins need to replace the receiver with the 110 // Sloppy mode functions and builtins need to replace the receiver with the
111 // global proxy when called as functions (without an explicit receiver 111 // global proxy when called as functions (without an explicit receiver
112 // object). 112 // object).
113 if (info_->this_has_uses() && is_sloppy(info_->language_mode()) && 113 if (graph()->this_has_uses() && is_sloppy(info_->language_mode()) &&
114 !info_->is_native()) { 114 !info_->is_native()) {
115 Label ok; 115 Label ok;
116 // +1 for return address. 116 // +1 for return address.
117 int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize; 117 int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize;
118 __ mov(ecx, Operand(esp, receiver_offset)); 118 __ mov(ecx, Operand(esp, receiver_offset));
119 119
120 __ cmp(ecx, isolate()->factory()->undefined_value()); 120 __ cmp(ecx, isolate()->factory()->undefined_value());
121 __ j(not_equal, &ok, Label::kNear); 121 __ j(not_equal, &ok, Label::kNear);
122 122
123 __ mov(ecx, GlobalObjectOperand()); 123 __ mov(ecx, GlobalObjectOperand());
(...skipping 6289 matching lines...) Expand 10 before | Expand all | Expand 10 after
6413 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6413 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6414 RecordSafepoint(Safepoint::kNoLazyDeopt); 6414 RecordSafepoint(Safepoint::kNoLazyDeopt);
6415 } 6415 }
6416 6416
6417 6417
6418 #undef __ 6418 #undef __
6419 6419
6420 } } // namespace v8::internal 6420 } } // namespace v8::internal
6421 6421
6422 #endif // V8_TARGET_ARCH_X87 6422 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698