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

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

Issue 1007783002: Remove --harmony-scoping flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CR feedback 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/messages.js ('k') | src/mips64/full-codegen-mips64.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 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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 bool function_in_register = true; 199 bool function_in_register = true;
200 200
201 // Possibly allocate a local context. 201 // Possibly allocate a local context.
202 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 202 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
203 if (heap_slots > 0) { 203 if (heap_slots > 0) {
204 Comment cmnt(masm_, "[ Allocate context"); 204 Comment cmnt(masm_, "[ Allocate context");
205 // Argument to NewContext is the function, which is still in a1. 205 // Argument to NewContext is the function, which is still in a1.
206 bool need_write_barrier = true; 206 bool need_write_barrier = true;
207 if (FLAG_harmony_scoping && info->scope()->is_script_scope()) { 207 if (info->scope()->is_script_scope()) {
208 __ push(a1); 208 __ push(a1);
209 __ Push(info->scope()->GetScopeInfo(info->isolate())); 209 __ Push(info->scope()->GetScopeInfo(info->isolate()));
210 __ CallRuntime(Runtime::kNewScriptContext, 2); 210 __ CallRuntime(Runtime::kNewScriptContext, 2);
211 } else if (heap_slots <= FastNewContextStub::kMaximumSlots) { 211 } else if (heap_slots <= FastNewContextStub::kMaximumSlots) {
212 FastNewContextStub stub(isolate(), heap_slots); 212 FastNewContextStub stub(isolate(), heap_slots);
213 __ CallStub(&stub); 213 __ CallStub(&stub);
214 // Result of FastNewContextStub is always in new space. 214 // Result of FastNewContextStub is always in new space.
215 need_write_barrier = false; 215 need_write_barrier = false;
216 } else { 216 } else {
217 __ push(a1); 217 __ push(a1);
(...skipping 5238 matching lines...) Expand 10 before | Expand all | Expand 10 after
5456 Assembler::target_address_at(pc_immediate_load_address)) == 5456 Assembler::target_address_at(pc_immediate_load_address)) ==
5457 reinterpret_cast<uint32_t>( 5457 reinterpret_cast<uint32_t>(
5458 isolate->builtins()->OsrAfterStackCheck()->entry())); 5458 isolate->builtins()->OsrAfterStackCheck()->entry()));
5459 return OSR_AFTER_STACK_CHECK; 5459 return OSR_AFTER_STACK_CHECK;
5460 } 5460 }
5461 5461
5462 5462
5463 } } // namespace v8::internal 5463 } } // namespace v8::internal
5464 5464
5465 #endif // V8_TARGET_ARCH_MIPS 5465 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698