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

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

Issue 1220223005: Cleanup frame description constant. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_graph-builder-new-target
Patch Set: Addressed comments. Created 5 years, 5 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/x87/frames-x87.h ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset)); 254 __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset));
255 255
256 __ bind(&non_adaptor_frame); 256 __ bind(&non_adaptor_frame);
257 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset), 257 __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset),
258 Immediate(Smi::FromInt(StackFrame::CONSTRUCT))); 258 Immediate(Smi::FromInt(StackFrame::CONSTRUCT)));
259 259
260 Label non_construct_frame, done; 260 Label non_construct_frame, done;
261 __ j(not_equal, &non_construct_frame); 261 __ j(not_equal, &non_construct_frame);
262 262
263 // Construct frame 263 // Construct frame
264 __ mov(eax, Operand(eax, StandardFrameConstants::kExpressionsOffset - 264 __ mov(eax,
265 2 * kPointerSize)); 265 Operand(eax, ConstructFrameConstants::kOriginalConstructorOffset));
266 __ jmp(&done); 266 __ jmp(&done);
267 267
268 // Non-construct frame 268 // Non-construct frame
269 __ bind(&non_construct_frame); 269 __ bind(&non_construct_frame);
270 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); 270 __ mov(eax, Immediate(isolate()->factory()->undefined_value()));
271 271
272 __ bind(&done); 272 __ bind(&done);
273 SetVar(new_target_var, eax, ebx, edx); 273 SetVar(new_target_var, eax, ebx, edx);
274 } 274 }
275 275
(...skipping 5223 matching lines...) Expand 10 before | Expand all | Expand 10 after
5499 Assembler::target_address_at(call_target_address, 5499 Assembler::target_address_at(call_target_address,
5500 unoptimized_code)); 5500 unoptimized_code));
5501 return OSR_AFTER_STACK_CHECK; 5501 return OSR_AFTER_STACK_CHECK;
5502 } 5502 }
5503 5503
5504 5504
5505 } // namespace internal 5505 } // namespace internal
5506 } // namespace v8 5506 } // namespace v8
5507 5507
5508 #endif // V8_TARGET_ARCH_X87 5508 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/frames-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698