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

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

Issue 14429003: Refactor ExternalReference::isolate_address() to not rely on Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/regexp-macro-assembler-mips.h » ('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 3978 matching lines...) Expand 10 before | Expand all | Expand 10 after
3989 ExternalReference(Runtime::kPromoteScheduledException, isolate()), 3989 ExternalReference(Runtime::kPromoteScheduledException, isolate()),
3990 0, 3990 0,
3991 1); 3991 1);
3992 3992
3993 // HandleScope limit has changed. Delete allocated extensions. 3993 // HandleScope limit has changed. Delete allocated extensions.
3994 bind(&delete_allocated_handles); 3994 bind(&delete_allocated_handles);
3995 sw(s1, MemOperand(s3, kLimitOffset)); 3995 sw(s1, MemOperand(s3, kLimitOffset));
3996 mov(s0, v0); 3996 mov(s0, v0);
3997 mov(a0, v0); 3997 mov(a0, v0);
3998 PrepareCallCFunction(1, s1); 3998 PrepareCallCFunction(1, s1);
3999 li(a0, Operand(ExternalReference::isolate_address())); 3999 li(a0, Operand(ExternalReference::isolate_address(isolate())));
4000 CallCFunction(ExternalReference::delete_handle_scope_extensions(isolate()), 4000 CallCFunction(ExternalReference::delete_handle_scope_extensions(isolate()),
4001 1); 4001 1);
4002 mov(v0, s0); 4002 mov(v0, s0);
4003 jmp(&leave_exit_frame); 4003 jmp(&leave_exit_frame);
4004 } 4004 }
4005 4005
4006 4006
4007 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { 4007 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) {
4008 if (!has_frame_ && stub->SometimesSetsUpAFrame()) return false; 4008 if (!has_frame_ && stub->SometimesSetsUpAFrame()) return false;
4009 return allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe(isolate()); 4009 return allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe(isolate());
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
5493 opcode == BGTZL); 5493 opcode == BGTZL);
5494 opcode = (cond == eq) ? BEQ : BNE; 5494 opcode = (cond == eq) ? BEQ : BNE;
5495 instr = (instr & ~kOpcodeMask) | opcode; 5495 instr = (instr & ~kOpcodeMask) | opcode;
5496 masm_.emit(instr); 5496 masm_.emit(instr);
5497 } 5497 }
5498 5498
5499 5499
5500 } } // namespace v8::internal 5500 } } // namespace v8::internal
5501 5501
5502 #endif // V8_TARGET_ARCH_MIPS 5502 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/regexp-macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698