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

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

Issue 883073008: Accessor functions should have no prototype property (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use bitshift 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 | src/arm64/full-codegen-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // the frame (that is done below). 146 // the frame (that is done below).
147 FrameScope frame_scope(masm_, StackFrame::MANUAL); 147 FrameScope frame_scope(masm_, StackFrame::MANUAL);
148 148
149 info->set_prologue_offset(masm_->pc_offset()); 149 info->set_prologue_offset(masm_->pc_offset());
150 __ Prologue(info->IsCodePreAgingActive()); 150 __ Prologue(info->IsCodePreAgingActive());
151 info->AddNoFrameRange(0, masm_->pc_offset()); 151 info->AddNoFrameRange(0, masm_->pc_offset());
152 152
153 { Comment cmnt(masm_, "[ Allocate locals"); 153 { Comment cmnt(masm_, "[ Allocate locals");
154 int locals_count = info->scope()->num_stack_slots(); 154 int locals_count = info->scope()->num_stack_slots();
155 // Generators allocate locals, if any, in context slots. 155 // Generators allocate locals, if any, in context slots.
156 DCHECK(!info->function()->is_generator() || locals_count == 0); 156 DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0);
157 if (locals_count > 0) { 157 if (locals_count > 0) {
158 if (locals_count >= 128) { 158 if (locals_count >= 128) {
159 Label ok; 159 Label ok;
160 __ sub(r9, sp, Operand(locals_count * kPointerSize)); 160 __ sub(r9, sp, Operand(locals_count * kPointerSize));
161 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex); 161 __ LoadRoot(r2, Heap::kRealStackLimitRootIndex);
162 __ cmp(r9, Operand(r2)); 162 __ cmp(r9, Operand(r2));
163 __ b(hs, &ok); 163 __ b(hs, &ok);
164 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); 164 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION);
165 __ bind(&ok); 165 __ bind(&ok);
166 } 166 }
(...skipping 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after
5426 5426
5427 DCHECK(interrupt_address == 5427 DCHECK(interrupt_address ==
5428 isolate->builtins()->OsrAfterStackCheck()->entry()); 5428 isolate->builtins()->OsrAfterStackCheck()->entry());
5429 return OSR_AFTER_STACK_CHECK; 5429 return OSR_AFTER_STACK_CHECK;
5430 } 5430 }
5431 5431
5432 5432
5433 } } // namespace v8::internal 5433 } } // namespace v8::internal
5434 5434
5435 #endif // V8_TARGET_ARCH_ARM 5435 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698