| OLD | NEW |
| 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 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2541 | 2541 |
| 2542 void MacroAssembler::AssertFastElements(Register elements) { | 2542 void MacroAssembler::AssertFastElements(Register elements) { |
| 2543 if (emit_debug_code()) { | 2543 if (emit_debug_code()) { |
| 2544 ASSERT(!elements.is(ip)); | 2544 ASSERT(!elements.is(ip)); |
| 2545 Label ok; | 2545 Label ok; |
| 2546 push(elements); | 2546 push(elements); |
| 2547 ldr(elements, FieldMemOperand(elements, HeapObject::kMapOffset)); | 2547 ldr(elements, FieldMemOperand(elements, HeapObject::kMapOffset)); |
| 2548 LoadRoot(ip, Heap::kFixedArrayMapRootIndex); | 2548 LoadRoot(ip, Heap::kFixedArrayMapRootIndex); |
| 2549 cmp(elements, ip); | 2549 cmp(elements, ip); |
| 2550 b(eq, &ok); | 2550 b(eq, &ok); |
| 2551 LoadRoot(ip, Heap::kFixedDoubleArrayMapRootIndex); |
| 2552 cmp(elements, ip); |
| 2553 b(eq, &ok); |
| 2551 LoadRoot(ip, Heap::kFixedCOWArrayMapRootIndex); | 2554 LoadRoot(ip, Heap::kFixedCOWArrayMapRootIndex); |
| 2552 cmp(elements, ip); | 2555 cmp(elements, ip); |
| 2553 b(eq, &ok); | 2556 b(eq, &ok); |
| 2554 Abort("JSObject with fast elements map has slow elements"); | 2557 Abort("JSObject with fast elements map has slow elements"); |
| 2555 bind(&ok); | 2558 bind(&ok); |
| 2556 pop(elements); | 2559 pop(elements); |
| 2557 } | 2560 } |
| 2558 } | 2561 } |
| 2559 | 2562 |
| 2560 | 2563 |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3231 void CodePatcher::EmitCondition(Condition cond) { | 3234 void CodePatcher::EmitCondition(Condition cond) { |
| 3232 Instr instr = Assembler::instr_at(masm_.pc_); | 3235 Instr instr = Assembler::instr_at(masm_.pc_); |
| 3233 instr = (instr & ~kCondMask) | cond; | 3236 instr = (instr & ~kCondMask) | cond; |
| 3234 masm_.emit(instr); | 3237 masm_.emit(instr); |
| 3235 } | 3238 } |
| 3236 | 3239 |
| 3237 | 3240 |
| 3238 } } // namespace v8::internal | 3241 } } // namespace v8::internal |
| 3239 | 3242 |
| 3240 #endif // V8_TARGET_ARCH_ARM | 3243 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |