OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // ------------------------------------------------------------------------- | 42 // ------------------------------------------------------------------------- |
43 // MacroAssembler implementation. | 43 // MacroAssembler implementation. |
44 | 44 |
45 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) | 45 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) |
46 : Assembler(arg_isolate, buffer, size), | 46 : Assembler(arg_isolate, buffer, size), |
47 generating_stub_(false), | 47 generating_stub_(false), |
48 allow_stub_calls_(true), | 48 allow_stub_calls_(true), |
49 has_frame_(false) { | 49 has_frame_(false) { |
50 if (isolate() != NULL) { | 50 if (isolate() != NULL) { |
| 51 // TODO(titzer): should we just use a null handle here instead? |
51 code_object_ = Handle<Object>(isolate()->heap()->undefined_value(), | 52 code_object_ = Handle<Object>(isolate()->heap()->undefined_value(), |
52 isolate()); | 53 isolate()); |
53 } | 54 } |
54 } | 55 } |
55 | 56 |
56 | 57 |
57 void MacroAssembler::LoadRoot(Register destination, Heap::RootListIndex index) { | 58 void MacroAssembler::LoadRoot(Register destination, Heap::RootListIndex index) { |
58 if (isolate()->heap()->RootCanBeTreatedAsConstant(index)) { | 59 if (isolate()->heap()->RootCanBeTreatedAsConstant(index)) { |
59 Handle<Object> value(&isolate()->heap()->roots_array_start()[index]); | 60 Handle<Object> value(&isolate()->heap()->roots_array_start()[index]); |
60 mov(destination, value); | 61 mov(destination, value); |
(...skipping 3355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3416 j(greater, &no_memento_available); | 3417 j(greater, &no_memento_available); |
3417 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize), | 3418 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize), |
3418 Immediate(Handle<Map>(isolate()->heap()->allocation_memento_map()))); | 3419 Immediate(Handle<Map>(isolate()->heap()->allocation_memento_map()))); |
3419 bind(&no_memento_available); | 3420 bind(&no_memento_available); |
3420 } | 3421 } |
3421 | 3422 |
3422 | 3423 |
3423 } } // namespace v8::internal | 3424 } } // namespace v8::internal |
3424 | 3425 |
3425 #endif // V8_TARGET_ARCH_IA32 | 3426 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |