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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 10895011: InternalProperty in mirror-debugger.js and ARM experimental assert (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | « no previous file | src/mirror-debugger.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 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 2457 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 // its slot of the pushing of safepoint registers is used to communicate the 2468 // its slot of the pushing of safepoint registers is used to communicate the
2469 // offset to the location of the map check. 2469 // offset to the location of the map check.
2470 Register temp = ToRegister(instr->TempAt(0)); 2470 Register temp = ToRegister(instr->TempAt(0));
2471 ASSERT(temp.is(r4)); 2471 ASSERT(temp.is(r4));
2472 __ LoadHeapObject(InstanceofStub::right(), instr->function()); 2472 __ LoadHeapObject(InstanceofStub::right(), instr->function());
2473 static const int kAdditionalDelta = 4; 2473 static const int kAdditionalDelta = 4;
2474 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta; 2474 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta;
2475 Label before_push_delta; 2475 Label before_push_delta;
2476 __ bind(&before_push_delta); 2476 __ bind(&before_push_delta);
2477 __ BlockConstPoolFor(kAdditionalDelta); 2477 __ BlockConstPoolFor(kAdditionalDelta);
2478 if (delta * kPointerSize >= (1<<12)) {
2479 // 12 is according to kLdrOffsetMask in MacroAssembler::GetRelocatedValueLoc ation.
2480 // A value of delta may be as high as 20560 when optimizing xSerializeObject _ from mirror-debugger.js for mirror-object.js test.
2481
2482 // 26 v8::internal::LCodeGen::DoDeferredInstanceOfKnownGlobal() /home/prybin/ src-v8-6/src/arm/lithium-codegen-arm.cc:2481 0x0836ea63
2483 // 25 v8::internal::LCodeGen::DeferredInstanceOfKnownGlobal::Generate() /home /prybin/src-v8-6/src/arm/lithium-codegen-arm.cc:2378 0x0836e31b
2484 // 24 v8::internal::LCodeGen::GenerateDeferredCode() /home/prybin/src-v8-6/sr c/arm/lithium-codegen-arm.cc:252 0x08363dd3
2485 // 23 v8::internal::LCodeGen::GenerateCode() /home/prybin/src-v8-6/src/arm/li thium-codegen-arm.cc:82 0x083630de
2486 // 22 v8::internal::LChunk::Codegen() /home/prybin/src-v8-6/src/lithium.cc:42 6 0x081aba71
2487 // 21 v8::internal::OptimizingCompiler::GenerateAndInstallCode() /home/prybin /src-v8-6/src/compiler.cc:375 0x080aa5a4
2488 // 20 v8::internal::MakeCrankshaftCode() /home/prybin/src-v8-6/src/compiler.c c:213 0x080a994b
2489 // 19 v8::internal::GenerateCode() /home/prybin/src-v8-6/src/compiler.cc:388 0x080aa661
2490 // 18 v8::internal::MakeCode() /home/prybin/src-v8-6/src/compiler.cc:404 0x08 0aa6b9
2491 // 17 v8::internal::Compiler::CompileLazy() /home/prybin/src-v8-6/src/compile r.cc:803 0x080ad265
2492 // 16 v8::internal::CompileLazyHelper() /home/prybin/src-v8-6/src/objects.cc: 7356 0x081f0cb4
2493 // 15 v8::internal::JSFunction::CompileOptimized() /home/prybin/src-v8-6/src/ objects.cc:7459 0x081f1676
2494 // 14 v8::internal::Runtime_LazyRecompile() /home/prybin/src-v8-6/src/runtime .cc:8293 0x08274b0e
2495 // 13 v8::internal::Simulator::SoftwareInterrupt() /home/prybin/src-v8-6/src/ arm/simulator-arm.cc:1844 0x0839e9a3
2496 // 12 v8::internal::Simulator::DecodeType7() /home/prybin/src-v8-6/src/arm/si mulator-arm.cc:2670 0x083a0da1
2497 // 11 v8::internal::Simulator::InstructionDecode() /home/prybin/src-v8-6/src/ arm/simulator-arm.cc:3235 0x083a278f
2498 // 10 v8::internal::Simulator::Execute() /home/prybin/src-v8-6/src/arm/simula tor-arm.cc:3266 0x083a2880
2499 // 9 v8::internal::Simulator::Call() /home/prybin/src-v8-6/src/arm/simulator- arm.cc:3346 0x083a2c1f
2500 // 8 v8::internal::Invoke() /home/prybin/src-v8-6/src/execution.cc:118 0x080d ce72
2501 // 7 v8::internal::Execution::Call() /home/prybin/src-v8-6/src/execution.cc:1 79 0x080dd388
2502 // 6 v8::Script::Run() /home/prybin/src-v8-6/src/api.cc:1612 0x080668ae
2503 // 5 v8::Shell::ExecuteString() /home/prybin/src-v8-6/src/d8.cc:166 0x0804ba0 3
2504 // 4 v8::SourceGroup::Execute() /home/prybin/src-v8-6/src/d8.cc:1550 0x08052b 91
2505 // 3 v8::Shell::RunMain() /home/prybin/src-v8-6/src/d8.cc:1797 0x0805360a
2506 // 2 v8::Shell::Main() /home/prybin/src-v8-6/src/d8.cc:1851 0x0805387a
2507 // 1 main() /home/prybin/src-v8-6/src/d8.cc:1906 0x080539e6
2508
2509 FATAL("delta value is too large");
2510 }
2478 __ mov(temp, Operand(delta * kPointerSize)); 2511 __ mov(temp, Operand(delta * kPointerSize));
2479 __ StoreToSafepointRegisterSlot(temp, temp); 2512 __ StoreToSafepointRegisterSlot(temp, temp);
2480 CallCodeGeneric(stub.GetCode(), 2513 CallCodeGeneric(stub.GetCode(),
2481 RelocInfo::CODE_TARGET, 2514 RelocInfo::CODE_TARGET,
2482 instr, 2515 instr,
2483 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 2516 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
2484 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment(); 2517 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment();
2485 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 2518 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
2486 // Put the result value into the result register slot and 2519 // Put the result value into the result register slot and
2487 // restore all registers. 2520 // restore all registers.
(...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after
5616 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5649 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5617 __ ldr(result, FieldMemOperand(scratch, 5650 __ ldr(result, FieldMemOperand(scratch,
5618 FixedArray::kHeaderSize - kPointerSize)); 5651 FixedArray::kHeaderSize - kPointerSize));
5619 __ bind(&done); 5652 __ bind(&done);
5620 } 5653 }
5621 5654
5622 5655
5623 #undef __ 5656 #undef __
5624 5657
5625 } } // namespace v8::internal 5658 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mirror-debugger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698