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

Side by Side Diff: src/ppc/full-codegen-ppc.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/parser.cc ('k') | src/preparser.h » ('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 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 bool function_in_register = true; 195 bool function_in_register = true;
196 196
197 // Possibly allocate a local context. 197 // Possibly allocate a local context.
198 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 198 int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
199 if (heap_slots > 0) { 199 if (heap_slots > 0) {
200 // Argument to NewContext is the function, which is still in r4. 200 // Argument to NewContext is the function, which is still in r4.
201 Comment cmnt(masm_, "[ Allocate context"); 201 Comment cmnt(masm_, "[ Allocate context");
202 bool need_write_barrier = true; 202 bool need_write_barrier = true;
203 if (FLAG_harmony_scoping && info->scope()->is_script_scope()) { 203 if (info->scope()->is_script_scope()) {
204 __ push(r4); 204 __ push(r4);
205 __ Push(info->scope()->GetScopeInfo(info->isolate())); 205 __ Push(info->scope()->GetScopeInfo(info->isolate()));
206 __ CallRuntime(Runtime::kNewScriptContext, 2); 206 __ CallRuntime(Runtime::kNewScriptContext, 2);
207 } else if (heap_slots <= FastNewContextStub::kMaximumSlots) { 207 } else if (heap_slots <= FastNewContextStub::kMaximumSlots) {
208 FastNewContextStub stub(isolate(), heap_slots); 208 FastNewContextStub stub(isolate(), heap_slots);
209 __ CallStub(&stub); 209 __ CallStub(&stub);
210 // Result of FastNewContextStub is always in new space. 210 // Result of FastNewContextStub is always in new space.
211 need_write_barrier = false; 211 need_write_barrier = false;
212 } else { 212 } else {
213 __ push(r4); 213 __ push(r4);
(...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5448 return ON_STACK_REPLACEMENT; 5448 return ON_STACK_REPLACEMENT;
5449 } 5449 }
5450 5450
5451 DCHECK(interrupt_address == 5451 DCHECK(interrupt_address ==
5452 isolate->builtins()->OsrAfterStackCheck()->entry()); 5452 isolate->builtins()->OsrAfterStackCheck()->entry());
5453 return OSR_AFTER_STACK_CHECK; 5453 return OSR_AFTER_STACK_CHECK;
5454 } 5454 }
5455 } 5455 }
5456 } // namespace v8::internal 5456 } // namespace v8::internal
5457 #endif // V8_TARGET_ARCH_PPC 5457 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698