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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 12317141: Added Isolate parameter to CodeStub::GetCode(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed whitespace. Rebased. Created 7 years, 9 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/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('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 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after
2748 } 2748 }
2749 2749
2750 2750
2751 #ifdef ENABLE_DEBUGGER_SUPPORT 2751 #ifdef ENABLE_DEBUGGER_SUPPORT
2752 2752
2753 void MacroAssembler::DebugBreak() { 2753 void MacroAssembler::DebugBreak() {
2754 PrepareCEntryArgs(0); 2754 PrepareCEntryArgs(0);
2755 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate())); 2755 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate()));
2756 CEntryStub ces(1); 2756 CEntryStub ces(1);
2757 ASSERT(AllowThisStubCall(&ces)); 2757 ASSERT(AllowThisStubCall(&ces));
2758 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); 2758 Call(ces.GetCode(isolate()), RelocInfo::DEBUG_BREAK);
2759 } 2759 }
2760 2760
2761 #endif // ENABLE_DEBUGGER_SUPPORT 2761 #endif // ENABLE_DEBUGGER_SUPPORT
2762 2762
2763 2763
2764 // --------------------------------------------------------------------------- 2764 // ---------------------------------------------------------------------------
2765 // Exception handling. 2765 // Exception handling.
2766 2766
2767 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, 2767 void MacroAssembler::PushTryHandler(StackHandler::Kind kind,
2768 int handler_index) { 2768 int handler_index) {
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
3934 // ----------------------------------------------------------------------------- 3934 // -----------------------------------------------------------------------------
3935 // Runtime calls. 3935 // Runtime calls.
3936 3936
3937 void MacroAssembler::CallStub(CodeStub* stub, 3937 void MacroAssembler::CallStub(CodeStub* stub,
3938 TypeFeedbackId ast_id, 3938 TypeFeedbackId ast_id,
3939 Condition cond, 3939 Condition cond,
3940 Register r1, 3940 Register r1,
3941 const Operand& r2, 3941 const Operand& r2,
3942 BranchDelaySlot bd) { 3942 BranchDelaySlot bd) {
3943 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs. 3943 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs.
3944 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id, 3944 Call(stub->GetCode(isolate()), RelocInfo::CODE_TARGET, ast_id,
3945 cond, r1, r2, bd); 3945 cond, r1, r2, bd);
3946 } 3946 }
3947 3947
3948 3948
3949 void MacroAssembler::TailCallStub(CodeStub* stub) { 3949 void MacroAssembler::TailCallStub(CodeStub* stub) {
3950 ASSERT(allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe()); 3950 ASSERT(allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe());
3951 Jump(stub->GetCode(), RelocInfo::CODE_TARGET); 3951 Jump(stub->GetCode(isolate()), RelocInfo::CODE_TARGET);
3952 } 3952 }
3953 3953
3954 3954
3955 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { 3955 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) {
3956 return ref0.address() - ref1.address(); 3956 return ref0.address() - ref1.address();
3957 } 3957 }
3958 3958
3959 3959
3960 void MacroAssembler::CallApiFunctionAndReturn(ExternalReference function, 3960 void MacroAssembler::CallApiFunctionAndReturn(ExternalReference function,
3961 int stack_space) { 3961 int stack_space) {
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
4292 TailCallExternalReference(ExternalReference(fid, isolate()), 4292 TailCallExternalReference(ExternalReference(fid, isolate()),
4293 num_arguments, 4293 num_arguments,
4294 result_size); 4294 result_size);
4295 } 4295 }
4296 4296
4297 4297
4298 void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin, 4298 void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin,
4299 BranchDelaySlot bd) { 4299 BranchDelaySlot bd) {
4300 PrepareCEntryFunction(builtin); 4300 PrepareCEntryFunction(builtin);
4301 CEntryStub stub(1); 4301 CEntryStub stub(1);
4302 Jump(stub.GetCode(), 4302 Jump(stub.GetCode(isolate()),
4303 RelocInfo::CODE_TARGET, 4303 RelocInfo::CODE_TARGET,
4304 al, 4304 al,
4305 zero_reg, 4305 zero_reg,
4306 Operand(zero_reg), 4306 Operand(zero_reg),
4307 bd); 4307 bd);
4308 } 4308 }
4309 4309
4310 4310
4311 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, 4311 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id,
4312 InvokeFlag flag, 4312 InvokeFlag flag,
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
5531 opcode == BGTZL); 5531 opcode == BGTZL);
5532 opcode = (cond == eq) ? BEQ : BNE; 5532 opcode = (cond == eq) ? BEQ : BNE;
5533 instr = (instr & ~kOpcodeMask) | opcode; 5533 instr = (instr & ~kOpcodeMask) | opcode;
5534 masm_.emit(instr); 5534 masm_.emit(instr);
5535 } 5535 }
5536 5536
5537 5537
5538 } } // namespace v8::internal 5538 } } // namespace v8::internal
5539 5539
5540 #endif // V8_TARGET_ARCH_MIPS 5540 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698