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

Side by Side Diff: src/arm64/full-codegen-arm64.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 | « src/arm/full-codegen-arm.cc ('k') | src/ast.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Push(lr, fp, cp, x1); 148 // Push(lr, fp, cp, x1);
149 // Add(fp, jssp, 2 * kPointerSize); 149 // Add(fp, jssp, 2 * kPointerSize);
150 info->set_prologue_offset(masm_->pc_offset()); 150 info->set_prologue_offset(masm_->pc_offset());
151 __ Prologue(info->IsCodePreAgingActive()); 151 __ Prologue(info->IsCodePreAgingActive());
152 info->AddNoFrameRange(0, masm_->pc_offset()); 152 info->AddNoFrameRange(0, masm_->pc_offset());
153 153
154 // Reserve space on the stack for locals. 154 // Reserve space on the stack for locals.
155 { Comment cmnt(masm_, "[ Allocate locals"); 155 { Comment cmnt(masm_, "[ Allocate locals");
156 int locals_count = info->scope()->num_stack_slots(); 156 int locals_count = info->scope()->num_stack_slots();
157 // Generators allocate locals, if any, in context slots. 157 // Generators allocate locals, if any, in context slots.
158 DCHECK(!info->function()->is_generator() || locals_count == 0); 158 DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0);
159 159
160 if (locals_count > 0) { 160 if (locals_count > 0) {
161 if (locals_count >= 128) { 161 if (locals_count >= 128) {
162 Label ok; 162 Label ok;
163 DCHECK(jssp.Is(__ StackPointer())); 163 DCHECK(jssp.Is(__ StackPointer()));
164 __ Sub(x10, jssp, locals_count * kPointerSize); 164 __ Sub(x10, jssp, locals_count * kPointerSize);
165 __ CompareRoot(x10, Heap::kRealStackLimitRootIndex); 165 __ CompareRoot(x10, Heap::kRealStackLimitRootIndex);
166 __ B(hs, &ok); 166 __ B(hs, &ok);
167 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); 167 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION);
168 __ Bind(&ok); 168 __ Bind(&ok);
(...skipping 5236 matching lines...) Expand 10 before | Expand all | Expand 10 after
5405 return previous_; 5405 return previous_;
5406 } 5406 }
5407 5407
5408 5408
5409 #undef __ 5409 #undef __
5410 5410
5411 5411
5412 } } // namespace v8::internal 5412 } } // namespace v8::internal
5413 5413
5414 #endif // V8_TARGET_ARCH_ARM64 5414 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698