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

Side by Side Diff: src/x87/builtins-x87.cc

Issue 920543005: X87: new classes: no longer experimental. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/full-codegen-x87.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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 Label loop, entry; 532 Label loop, entry;
533 __ mov(ecx, eax); 533 __ mov(ecx, eax);
534 __ jmp(&entry); 534 __ jmp(&entry);
535 __ bind(&loop); 535 __ bind(&loop);
536 __ push(Operand(ebx, ecx, times_4, 0)); 536 __ push(Operand(ebx, ecx, times_4, 0));
537 __ bind(&entry); 537 __ bind(&entry);
538 __ dec(ecx); 538 __ dec(ecx);
539 __ j(greater_equal, &loop); 539 __ j(greater_equal, &loop);
540 540
541 __ inc(eax); // Pushed new.target. 541 __ inc(eax); // Pushed new.target.
542
543
544 // Handle step in.
545 Label skip_step_in;
546 ExternalReference debug_step_in_fp =
547 ExternalReference::debug_step_in_fp_address(masm->isolate());
548 __ cmp(Operand::StaticVariable(debug_step_in_fp), Immediate(0));
549 __ j(equal, &skip_step_in);
550
551 __ push(eax);
552 __ push(edi);
553 __ push(edi);
554 __ CallRuntime(Runtime::kHandleStepInForDerivedConstructors, 1);
555 __ pop(edi);
556 __ pop(eax);
557
558 __ bind(&skip_step_in);
559
560 // Invoke function.
542 ParameterCount actual(eax); 561 ParameterCount actual(eax);
543 __ InvokeFunction(edi, actual, CALL_FUNCTION, NullCallWrapper()); 562 __ InvokeFunction(edi, actual, CALL_FUNCTION, NullCallWrapper());
544 563
545 // Restore context from the frame. 564 // Restore context from the frame.
546 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 565 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
547 566
548 __ mov(ebx, Operand(esp, 0)); 567 __ mov(ebx, Operand(esp, 0));
549 } 568 }
550 569
551 __ pop(ecx); // Return address. 570 __ pop(ecx); // Return address.
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 1548
1530 __ bind(&ok); 1549 __ bind(&ok);
1531 __ ret(0); 1550 __ ret(0);
1532 } 1551 }
1533 1552
1534 #undef __ 1553 #undef __
1535 } 1554 }
1536 } // namespace v8::internal 1555 } // namespace v8::internal
1537 1556
1538 #endif // V8_TARGET_ARCH_X87 1557 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698