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

Side by Side Diff: src/arm/macro-assembler-arm.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/arm/deoptimizer-arm.cc ('k') | src/arm/regexp-macro-assembler-arm.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 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2324 TailCallExternalReference( 2324 TailCallExternalReference(
2325 ExternalReference(Runtime::kPromoteScheduledException, isolate()), 2325 ExternalReference(Runtime::kPromoteScheduledException, isolate()),
2326 0, 2326 0,
2327 1); 2327 1);
2328 2328
2329 // HandleScope limit has changed. Delete allocated extensions. 2329 // HandleScope limit has changed. Delete allocated extensions.
2330 bind(&delete_allocated_handles); 2330 bind(&delete_allocated_handles);
2331 str(r5, MemOperand(r7, kLimitOffset)); 2331 str(r5, MemOperand(r7, kLimitOffset));
2332 mov(r4, r0); 2332 mov(r4, r0);
2333 PrepareCallCFunction(1, r5); 2333 PrepareCallCFunction(1, r5);
2334 mov(r0, Operand(ExternalReference::isolate_address())); 2334 mov(r0, Operand(ExternalReference::isolate_address(isolate())));
2335 CallCFunction( 2335 CallCFunction(
2336 ExternalReference::delete_handle_scope_extensions(isolate()), 1); 2336 ExternalReference::delete_handle_scope_extensions(isolate()), 1);
2337 mov(r0, r4); 2337 mov(r0, r4);
2338 jmp(&leave_exit_frame); 2338 jmp(&leave_exit_frame);
2339 } 2339 }
2340 2340
2341 2341
2342 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { 2342 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) {
2343 if (!has_frame_ && stub->SometimesSetsUpAFrame()) return false; 2343 if (!has_frame_ && stub->SometimesSetsUpAFrame()) return false;
2344 return allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe(isolate()); 2344 return allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe(isolate());
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
3818 void CodePatcher::EmitCondition(Condition cond) { 3818 void CodePatcher::EmitCondition(Condition cond) {
3819 Instr instr = Assembler::instr_at(masm_.pc_); 3819 Instr instr = Assembler::instr_at(masm_.pc_);
3820 instr = (instr & ~kCondMask) | cond; 3820 instr = (instr & ~kCondMask) | cond;
3821 masm_.emit(instr); 3821 masm_.emit(instr);
3822 } 3822 }
3823 3823
3824 3824
3825 } } // namespace v8::internal 3825 } } // namespace v8::internal
3826 3826
3827 #endif // V8_TARGET_ARCH_ARM 3827 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/regexp-macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698