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

Side by Side Diff: src/ia32/deoptimizer-ia32.cc

Issue 7607031: Update gc branch to bleeding_edge revision 8862. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Fix bug in weak-map merge Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/disasm-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 19 matching lines...) Expand all
30 #if defined(V8_TARGET_ARCH_IA32) 30 #if defined(V8_TARGET_ARCH_IA32)
31 31
32 #include "codegen.h" 32 #include "codegen.h"
33 #include "deoptimizer.h" 33 #include "deoptimizer.h"
34 #include "full-codegen.h" 34 #include "full-codegen.h"
35 #include "safepoint-table.h" 35 #include "safepoint-table.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 int Deoptimizer::table_entry_size_ = 10; 40 const int Deoptimizer::table_entry_size_ = 10;
41 41
42 42
43 int Deoptimizer::patch_size() { 43 int Deoptimizer::patch_size() {
44 return Assembler::kCallInstructionLength; 44 return Assembler::kCallInstructionLength;
45 } 45 }
46 46
47 47
48 static void ZapCodeRange(Address start, Address end) { 48 static void ZapCodeRange(Address start, Address end) {
49 #ifdef DEBUG 49 #ifdef DEBUG
50 ASSERT(start <= end); 50 ASSERT(start <= end);
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 602
603 // Set the continuation for the topmost frame. 603 // Set the continuation for the topmost frame.
604 if (is_topmost && bailout_type_ != DEBUGGER) { 604 if (is_topmost && bailout_type_ != DEBUGGER) {
605 Builtins* builtins = isolate_->builtins(); 605 Builtins* builtins = isolate_->builtins();
606 Code* continuation = (bailout_type_ == EAGER) 606 Code* continuation = (bailout_type_ == EAGER)
607 ? builtins->builtin(Builtins::kNotifyDeoptimized) 607 ? builtins->builtin(Builtins::kNotifyDeoptimized)
608 : builtins->builtin(Builtins::kNotifyLazyDeoptimized); 608 : builtins->builtin(Builtins::kNotifyLazyDeoptimized);
609 output_frame->SetContinuation( 609 output_frame->SetContinuation(
610 reinterpret_cast<uint32_t>(continuation->entry())); 610 reinterpret_cast<uint32_t>(continuation->entry()));
611 } 611 }
612
613 if (output_count_ - 1 == frame_index) iterator->Done();
614 } 612 }
615 613
616 614
617 void Deoptimizer::FillInputFrame(Address tos, JavaScriptFrame* frame) { 615 void Deoptimizer::FillInputFrame(Address tos, JavaScriptFrame* frame) {
618 // Set the register values. The values are not important as there are no 616 // Set the register values. The values are not important as there are no
619 // callee saved registers in JavaScript frames, so all registers are 617 // callee saved registers in JavaScript frames, so all registers are
620 // spilled. Registers ebp and esp are set to the correct values though. 618 // spilled. Registers ebp and esp are set to the correct values though.
621 619
622 for (int i = 0; i < Register::kNumRegisters; i++) { 620 for (int i = 0; i < Register::kNumRegisters; i++) {
623 input_->SetRegister(i, i * 4); 621 input_->SetRegister(i, i * 4);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 } 798 }
801 __ bind(&done); 799 __ bind(&done);
802 } 800 }
803 801
804 #undef __ 802 #undef __
805 803
806 804
807 } } // namespace v8::internal 805 } } // namespace v8::internal
808 806
809 #endif // V8_TARGET_ARCH_IA32 807 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698