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

Side by Side Diff: src/arm/virtual-frame-arm.cc

Issue 6529032: Merge 6168:6800 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/virtual-frame-arm.h ('k') | src/array.js » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Shuffle things around so the top of stack only in r0. 61 // Shuffle things around so the top of stack only in r0.
62 MergeTOSTo(R0_TOS); 62 MergeTOSTo(R0_TOS);
63 // Pop the register off the stack so it is detached from the frame. 63 // Pop the register off the stack so it is detached from the frame.
64 LowerHeight(1); 64 LowerHeight(1);
65 top_of_stack_state_ = NO_TOS_REGISTERS; 65 top_of_stack_state_ = NO_TOS_REGISTERS;
66 } 66 }
67 67
68 68
69 void VirtualFrame::MergeTo(const VirtualFrame* expected, Condition cond) { 69 void VirtualFrame::MergeTo(const VirtualFrame* expected, Condition cond) {
70 if (Equals(expected)) return; 70 if (Equals(expected)) return;
71 ASSERT((expected->tos_known_smi_map_ & tos_known_smi_map_) ==
72 expected->tos_known_smi_map_);
71 ASSERT(expected->IsCompatibleWith(this)); 73 ASSERT(expected->IsCompatibleWith(this));
72 MergeTOSTo(expected->top_of_stack_state_, cond); 74 MergeTOSTo(expected->top_of_stack_state_, cond);
73 ASSERT(register_allocation_map_ == expected->register_allocation_map_); 75 ASSERT(register_allocation_map_ == expected->register_allocation_map_);
74 } 76 }
75 77
76 78
77 void VirtualFrame::MergeTo(VirtualFrame* expected, Condition cond) { 79 void VirtualFrame::MergeTo(VirtualFrame* expected, Condition cond) {
78 if (Equals(expected)) return; 80 if (Equals(expected)) return;
79 expected->tos_known_smi_map_ &= tos_known_smi_map_; 81 tos_known_smi_map_ &= expected->tos_known_smi_map_;
80 MergeTOSTo(expected->top_of_stack_state_, cond); 82 MergeTOSTo(expected->top_of_stack_state_, cond);
81 ASSERT(register_allocation_map_ == expected->register_allocation_map_); 83 ASSERT(register_allocation_map_ == expected->register_allocation_map_);
82 } 84 }
83 85
84 86
85 void VirtualFrame::MergeTOSTo( 87 void VirtualFrame::MergeTOSTo(
86 VirtualFrame::TopOfStack expected_top_of_stack_state, Condition cond) { 88 VirtualFrame::TopOfStack expected_top_of_stack_state, Condition cond) {
87 #define CASE_NUMBER(a, b) ((a) * TOS_STATES + (b)) 89 #define CASE_NUMBER(a, b) ((a) * TOS_STATES + (b))
88 switch (CASE_NUMBER(top_of_stack_state_, expected_top_of_stack_state)) { 90 switch (CASE_NUMBER(top_of_stack_state_, expected_top_of_stack_state)) {
89 case CASE_NUMBER(NO_TOS_REGISTERS, NO_TOS_REGISTERS): 91 case CASE_NUMBER(NO_TOS_REGISTERS, NO_TOS_REGISTERS):
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 322
321 void VirtualFrame::CallLoadIC(Handle<String> name, RelocInfo::Mode mode) { 323 void VirtualFrame::CallLoadIC(Handle<String> name, RelocInfo::Mode mode) {
322 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); 324 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
323 PopToR0(); 325 PopToR0();
324 SpillAll(); 326 SpillAll();
325 __ mov(r2, Operand(name)); 327 __ mov(r2, Operand(name));
326 CallCodeObject(ic, mode, 0); 328 CallCodeObject(ic, mode, 0);
327 } 329 }
328 330
329 331
330 void VirtualFrame::CallStoreIC(Handle<String> name, bool is_contextual) { 332 void VirtualFrame::CallStoreIC(Handle<String> name,
331 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); 333 bool is_contextual,
334 StrictModeFlag strict_mode) {
335 Handle<Code> ic(Builtins::builtin(strict_mode == kStrictMode
336 ? Builtins::StoreIC_Initialize_Strict
337 : Builtins::StoreIC_Initialize));
332 PopToR0(); 338 PopToR0();
339 RelocInfo::Mode mode;
333 if (is_contextual) { 340 if (is_contextual) {
334 SpillAll(); 341 SpillAll();
335 __ ldr(r1, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX))); 342 __ ldr(r1, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX)));
343 mode = RelocInfo::CODE_TARGET_CONTEXT;
336 } else { 344 } else {
337 EmitPop(r1); 345 EmitPop(r1);
338 SpillAll(); 346 SpillAll();
347 mode = RelocInfo::CODE_TARGET;
339 } 348 }
340 __ mov(r2, Operand(name)); 349 __ mov(r2, Operand(name));
341 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); 350 CallCodeObject(ic, mode, 0);
342 } 351 }
343 352
344 353
345 void VirtualFrame::CallKeyedLoadIC() { 354 void VirtualFrame::CallKeyedLoadIC() {
346 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); 355 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
347 PopToR1R0(); 356 PopToR1R0();
348 SpillAll(); 357 SpillAll();
349 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0); 358 CallCodeObject(ic, RelocInfo::CODE_TARGET, 0);
350 } 359 }
351 360
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 break; 832 break;
824 } 833 }
825 ASSERT(register_allocation_map_ == 0); // Not yet implemented. 834 ASSERT(register_allocation_map_ == 0); // Not yet implemented.
826 } 835 }
827 836
828 #undef __ 837 #undef __
829 838
830 } } // namespace v8::internal 839 } } // namespace v8::internal
831 840
832 #endif // V8_TARGET_ARCH_ARM 841 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/virtual-frame-arm.h ('k') | src/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698