| OLD | NEW |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 elements_.Add(element); | 75 elements_.Add(element); |
| 76 } else { | 76 } else { |
| 77 Use(reg, element_count()); | 77 Use(reg, element_count()); |
| 78 FrameElement element = | 78 FrameElement element = |
| 79 FrameElement::RegisterElement(reg, FrameElement::NOT_SYNCED, info); | 79 FrameElement::RegisterElement(reg, FrameElement::NOT_SYNCED, info); |
| 80 elements_.Add(element); | 80 elements_.Add(element); |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 | 84 |
| 85 void VirtualFrame::Push(Handle<Object> value) { | 85 bool VirtualFrame::ConstantPoolOverflowed() { |
| 86 FrameElement element = | 86 return FrameElement::ConstantPoolOverflowed(); |
| 87 FrameElement::ConstantElement(value, FrameElement::NOT_SYNCED); | |
| 88 elements_.Add(element); | |
| 89 } | 87 } |
| 90 | 88 |
| 91 | 89 |
| 92 bool VirtualFrame::Equals(VirtualFrame* other) { | 90 bool VirtualFrame::Equals(VirtualFrame* other) { |
| 93 #ifdef DEBUG | 91 #ifdef DEBUG |
| 94 for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) { | 92 for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) { |
| 95 if (register_location(i) != other->register_location(i)) { | 93 if (register_location(i) != other->register_location(i)) { |
| 96 return false; | 94 return false; |
| 97 } | 95 } |
| 98 } | 96 } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 181 } |
| 184 | 182 |
| 185 | 183 |
| 186 int VirtualFrame::local_count() { | 184 int VirtualFrame::local_count() { |
| 187 return cgen()->scope()->num_stack_slots(); | 185 return cgen()->scope()->num_stack_slots(); |
| 188 } | 186 } |
| 189 | 187 |
| 190 } } // namespace v8::internal | 188 } } // namespace v8::internal |
| 191 | 189 |
| 192 #endif // V8_VIRTUAL_FRAME_HEAVY_INL_H_ | 190 #endif // V8_VIRTUAL_FRAME_HEAVY_INL_H_ |
| OLD | NEW |