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

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

Issue 913163003: X87: Parsing: Make Scope not know about Isolate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | 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/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool function_in_register = true; 183 bool function_in_register = true;
184 184
185 // Possibly allocate a local context. 185 // Possibly allocate a local context.
186 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 186 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
187 if (heap_slots > 0) { 187 if (heap_slots > 0) {
188 Comment cmnt(masm_, "[ Allocate context"); 188 Comment cmnt(masm_, "[ Allocate context");
189 bool need_write_barrier = true; 189 bool need_write_barrier = true;
190 // Argument to NewContext is the function, which is still in edi. 190 // Argument to NewContext is the function, which is still in edi.
191 if (FLAG_harmony_scoping && info->scope()->is_script_scope()) { 191 if (FLAG_harmony_scoping && info->scope()->is_script_scope()) {
192 __ push(edi); 192 __ push(edi);
193 __ Push(info->scope()->GetScopeInfo()); 193 __ Push(info->scope()->GetScopeInfo(info->isolate()));
194 __ CallRuntime(Runtime::kNewScriptContext, 2); 194 __ CallRuntime(Runtime::kNewScriptContext, 2);
195 } else if (heap_slots <= FastNewContextStub::kMaximumSlots) { 195 } else if (heap_slots <= FastNewContextStub::kMaximumSlots) {
196 FastNewContextStub stub(isolate(), heap_slots); 196 FastNewContextStub stub(isolate(), heap_slots);
197 __ CallStub(&stub); 197 __ CallStub(&stub);
198 // Result of FastNewContextStub is always in new space. 198 // Result of FastNewContextStub is always in new space.
199 need_write_barrier = false; 199 need_write_barrier = false;
200 } else { 200 } else {
201 __ push(edi); 201 __ push(edi);
202 __ CallRuntime(Runtime::kNewFunctionContext, 1); 202 __ CallRuntime(Runtime::kNewFunctionContext, 1);
203 } 203 }
(...skipping 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after
5278 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5278 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5279 Assembler::target_address_at(call_target_address, 5279 Assembler::target_address_at(call_target_address,
5280 unoptimized_code)); 5280 unoptimized_code));
5281 return OSR_AFTER_STACK_CHECK; 5281 return OSR_AFTER_STACK_CHECK;
5282 } 5282 }
5283 5283
5284 5284
5285 } } // namespace v8::internal 5285 } } // namespace v8::internal
5286 5286
5287 #endif // V8_TARGET_ARCH_X87 5287 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698