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

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

Issue 251473004: MIPS: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: git@github.com:paul99/v8m-rb.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « src/mips/lithium-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 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after
2688 } 2688 }
2689 2689
2690 2690
2691 #ifdef ENABLE_DEBUGGER_SUPPORT 2691 #ifdef ENABLE_DEBUGGER_SUPPORT
2692 2692
2693 void MacroAssembler::DebugBreak() { 2693 void MacroAssembler::DebugBreak() {
2694 PrepareCEntryArgs(0); 2694 PrepareCEntryArgs(0);
2695 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate())); 2695 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate()));
2696 CEntryStub ces(isolate(), 1); 2696 CEntryStub ces(isolate(), 1);
2697 ASSERT(AllowThisStubCall(&ces)); 2697 ASSERT(AllowThisStubCall(&ces));
2698 Call(ces.GetCode(isolate()), RelocInfo::DEBUG_BREAK); 2698 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK);
2699 } 2699 }
2700 2700
2701 #endif // ENABLE_DEBUGGER_SUPPORT 2701 #endif // ENABLE_DEBUGGER_SUPPORT
2702 2702
2703 2703
2704 // --------------------------------------------------------------------------- 2704 // ---------------------------------------------------------------------------
2705 // Exception handling. 2705 // Exception handling.
2706 2706
2707 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, 2707 void MacroAssembler::PushTryHandler(StackHandler::Kind kind,
2708 int handler_index) { 2708 int handler_index) {
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
3887 // ----------------------------------------------------------------------------- 3887 // -----------------------------------------------------------------------------
3888 // Runtime calls. 3888 // Runtime calls.
3889 3889
3890 void MacroAssembler::CallStub(CodeStub* stub, 3890 void MacroAssembler::CallStub(CodeStub* stub,
3891 TypeFeedbackId ast_id, 3891 TypeFeedbackId ast_id,
3892 Condition cond, 3892 Condition cond,
3893 Register r1, 3893 Register r1,
3894 const Operand& r2, 3894 const Operand& r2,
3895 BranchDelaySlot bd) { 3895 BranchDelaySlot bd) {
3896 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs. 3896 ASSERT(AllowThisStubCall(stub)); // Stub calls are not allowed in some stubs.
3897 Call(stub->GetCode(isolate()), RelocInfo::CODE_TARGET, ast_id, 3897 Call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id,
3898 cond, r1, r2, bd); 3898 cond, r1, r2, bd);
3899 } 3899 }
3900 3900
3901 3901
3902 void MacroAssembler::TailCallStub(CodeStub* stub, 3902 void MacroAssembler::TailCallStub(CodeStub* stub,
3903 Condition cond, 3903 Condition cond,
3904 Register r1, 3904 Register r1,
3905 const Operand& r2, 3905 const Operand& r2,
3906 BranchDelaySlot bd) { 3906 BranchDelaySlot bd) {
3907 Jump(stub->GetCode(isolate()), RelocInfo::CODE_TARGET, cond, r1, r2, bd); 3907 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond, r1, r2, bd);
3908 } 3908 }
3909 3909
3910 3910
3911 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { 3911 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) {
3912 return ref0.address() - ref1.address(); 3912 return ref0.address() - ref1.address();
3913 } 3913 }
3914 3914
3915 3915
3916 void MacroAssembler::CallApiFunctionAndReturn( 3916 void MacroAssembler::CallApiFunctionAndReturn(
3917 Register function_address, 3917 Register function_address,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
4252 TailCallExternalReference(ExternalReference(fid, isolate()), 4252 TailCallExternalReference(ExternalReference(fid, isolate()),
4253 num_arguments, 4253 num_arguments,
4254 result_size); 4254 result_size);
4255 } 4255 }
4256 4256
4257 4257
4258 void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin, 4258 void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin,
4259 BranchDelaySlot bd) { 4259 BranchDelaySlot bd) {
4260 PrepareCEntryFunction(builtin); 4260 PrepareCEntryFunction(builtin);
4261 CEntryStub stub(isolate(), 1); 4261 CEntryStub stub(isolate(), 1);
4262 Jump(stub.GetCode(isolate()), 4262 Jump(stub.GetCode(),
4263 RelocInfo::CODE_TARGET, 4263 RelocInfo::CODE_TARGET,
4264 al, 4264 al,
4265 zero_reg, 4265 zero_reg,
4266 Operand(zero_reg), 4266 Operand(zero_reg),
4267 bd); 4267 bd);
4268 } 4268 }
4269 4269
4270 4270
4271 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, 4271 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id,
4272 InvokeFlag flag, 4272 InvokeFlag flag,
(...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after
5776 } 5776 }
5777 if (ms.shift() > 0) sra(result, result, ms.shift()); 5777 if (ms.shift() > 0) sra(result, result, ms.shift());
5778 srl(at, dividend, 31); 5778 srl(at, dividend, 31);
5779 Addu(result, result, Operand(at)); 5779 Addu(result, result, Operand(at));
5780 } 5780 }
5781 5781
5782 5782
5783 } } // namespace v8::internal 5783 } } // namespace v8::internal
5784 5784
5785 #endif // V8_TARGET_ARCH_MIPS 5785 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698