| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 4319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4330 } | 4330 } |
| 4331 } | 4331 } |
| 4332 } | 4332 } |
| 4333 | 4333 |
| 4334 | 4334 |
| 4335 void LCodeGen::DoDebugBreak(LDebugBreak* instr) { | 4335 void LCodeGen::DoDebugBreak(LDebugBreak* instr) { |
| 4336 __ Debug("LDebugBreak", 0, BREAK); | 4336 __ Debug("LDebugBreak", 0, BREAK); |
| 4337 } | 4337 } |
| 4338 | 4338 |
| 4339 | 4339 |
| 4340 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
| 4341 Register scratch1 = x5; |
| 4342 Register scratch2 = x6; |
| 4343 ASSERT(instr->IsMarkedAsCall()); |
| 4344 |
| 4345 ASM_UNIMPLEMENTED_BREAK("DoDeclareGlobals"); |
| 4346 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); |
| 4347 __ Mov(scratch2, Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
| 4348 __ Push(cp, scratch1, scratch2); // The context is the first argument. |
| 4349 CallRuntime(Runtime::kDeclareGlobals, 3, instr); |
| 4350 } |
| 4351 |
| 4352 |
| 4340 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { | 4353 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { |
| 4341 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); | 4354 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); |
| 4342 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); | 4355 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); |
| 4343 RecordSafepointWithLazyDeopt( | 4356 RecordSafepointWithLazyDeopt( |
| 4344 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4357 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
| 4345 ASSERT(instr->HasEnvironment()); | 4358 ASSERT(instr->HasEnvironment()); |
| 4346 LEnvironment* env = instr->environment(); | 4359 LEnvironment* env = instr->environment(); |
| 4347 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); | 4360 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); |
| 4348 } | 4361 } |
| 4349 | 4362 |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5269 __ Bind(&out_of_object); | 5282 __ Bind(&out_of_object); |
| 5270 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5283 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5271 // Index is equal to negated out of object property index plus 1. | 5284 // Index is equal to negated out of object property index plus 1. |
| 5272 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5285 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5273 __ Ldr(result, FieldMemOperand(result, | 5286 __ Ldr(result, FieldMemOperand(result, |
| 5274 FixedArray::kHeaderSize - kPointerSize)); | 5287 FixedArray::kHeaderSize - kPointerSize)); |
| 5275 __ Bind(&done); | 5288 __ Bind(&done); |
| 5276 } | 5289 } |
| 5277 | 5290 |
| 5278 } } // namespace v8::internal | 5291 } } // namespace v8::internal |
| OLD | NEW |