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

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

Issue 1577193003: Change the CompilationInfo::IsCodePreAgingActive() predicate to CompilationInfo::GeneratePreagingPr… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 __ CompareObjectType(r2, r2, no_reg, FIRST_JS_RECEIVER_TYPE); 124 __ CompareObjectType(r2, r2, no_reg, FIRST_JS_RECEIVER_TYPE);
125 __ Assert(ge, kSloppyFunctionExpectsJSReceiverReceiver); 125 __ Assert(ge, kSloppyFunctionExpectsJSReceiverReceiver);
126 } 126 }
127 127
128 // Open a frame scope to indicate that there is a frame on the stack. The 128 // Open a frame scope to indicate that there is a frame on the stack. The
129 // MANUAL indicates that the scope shouldn't actually generate code to set up 129 // MANUAL indicates that the scope shouldn't actually generate code to set up
130 // the frame (that is done below). 130 // the frame (that is done below).
131 FrameScope frame_scope(masm_, StackFrame::MANUAL); 131 FrameScope frame_scope(masm_, StackFrame::MANUAL);
132 132
133 info->set_prologue_offset(masm_->pc_offset()); 133 info->set_prologue_offset(masm_->pc_offset());
134 __ Prologue(info->IsCodePreAgingActive()); 134 __ Prologue(info->GeneratePreagedPrologue());
135 135
136 { Comment cmnt(masm_, "[ Allocate locals"); 136 { Comment cmnt(masm_, "[ Allocate locals");
137 int locals_count = info->scope()->num_stack_slots(); 137 int locals_count = info->scope()->num_stack_slots();
138 // Generators allocate locals, if any, in context slots. 138 // Generators allocate locals, if any, in context slots.
139 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); 139 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0);
140 if (locals_count > 0) { 140 if (locals_count > 0) {
141 if (locals_count >= 128) { 141 if (locals_count >= 128) {
142 Label ok; 142 Label ok;
143 __ sub(r9, sp, Operand(locals_count * kPointerSize)); 143 __ sub(r9, sp, Operand(locals_count * kPointerSize));
144 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex); 144 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex);
(...skipping 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after
4922 DCHECK(interrupt_address == 4922 DCHECK(interrupt_address ==
4923 isolate->builtins()->OsrAfterStackCheck()->entry()); 4923 isolate->builtins()->OsrAfterStackCheck()->entry());
4924 return OSR_AFTER_STACK_CHECK; 4924 return OSR_AFTER_STACK_CHECK;
4925 } 4925 }
4926 4926
4927 4927
4928 } // namespace internal 4928 } // namespace internal
4929 } // namespace v8 4929 } // namespace v8
4930 4930
4931 #endif // V8_TARGET_ARCH_ARM 4931 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698