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

Side by Side Diff: src/jump-target-light.cc

Issue 2249002: Fix jump targets on ARM to merge virtual frames (really this time).... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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/codegen.h ('k') | src/virtual-frame-light-inl.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 16 matching lines...) Expand all
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "codegen-inl.h" 30 #include "codegen-inl.h"
31 #include "jump-target-inl.h" 31 #include "jump-target-inl.h"
32 32
33 namespace v8 { 33 namespace v8 {
34 namespace internal { 34 namespace internal {
35 35
36 36
37 FrameRegisterState::FrameRegisterState(VirtualFrame* frame) {
38 // Nothing to do when register allocation is not supported.
39 ASSERT(RegisterAllocator::kNumRegisters == 0);
40 }
41
42
43 DeferredCode::DeferredCode() 37 DeferredCode::DeferredCode()
44 : masm_(CodeGeneratorScope::Current()->masm()), 38 : masm_(CodeGeneratorScope::Current()->masm()),
45 statement_position_(masm_->current_statement_position()), 39 statement_position_(masm_->current_statement_position()),
46 position_(masm_->current_position()), 40 position_(masm_->current_position()),
47 frame_state_(CodeGeneratorScope::Current()->frame()) { 41 frame_state_(*CodeGeneratorScope::Current()->frame()) {
48 ASSERT(statement_position_ != RelocInfo::kNoPosition); 42 ASSERT(statement_position_ != RelocInfo::kNoPosition);
49 ASSERT(position_ != RelocInfo::kNoPosition); 43 ASSERT(position_ != RelocInfo::kNoPosition);
50 44
51 CodeGeneratorScope::Current()->AddDeferred(this); 45 CodeGeneratorScope::Current()->AddDeferred(this);
52 46
53 #ifdef DEBUG 47 #ifdef DEBUG
54 comment_ = ""; 48 comment_ = "";
55 CodeGeneratorScope::Current()->frame()->AssertIsSpilled();
56 #endif 49 #endif
57 } 50 }
58 51
59 52
60 // ------------------------------------------------------------------------- 53 // -------------------------------------------------------------------------
61 // BreakTarget implementation. 54 // BreakTarget implementation.
62 55
63 56
64 void BreakTarget::SetExpectedHeight() { 57 void BreakTarget::SetExpectedHeight() {
65 expected_height_ = cgen()->frame()->height(); 58 expected_height_ = cgen()->frame()->height();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 if (cgen()->has_valid_frame()) { 101 if (cgen()->has_valid_frame()) {
109 int count = cgen()->frame()->height() - expected_height_; 102 int count = cgen()->frame()->height() - expected_height_;
110 if (count > 0) { 103 if (count > 0) {
111 cgen()->frame()->Drop(count); 104 cgen()->frame()->Drop(count);
112 } 105 }
113 } 106 }
114 DoBind(); 107 DoBind();
115 } 108 }
116 109
117 } } // namespace v8::internal 110 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/virtual-frame-light-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698