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

Side by Side Diff: src/arm/deoptimizer-arm.cc

Issue 15691017: Make assertion scopes thread safe. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
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 30 matching lines...) Expand all
41 int Deoptimizer::patch_size() { 41 int Deoptimizer::patch_size() {
42 const int kCallInstructionSizeInWords = 3; 42 const int kCallInstructionSizeInWords = 3;
43 return kCallInstructionSizeInWords * Assembler::kInstrSize; 43 return kCallInstructionSizeInWords * Assembler::kInstrSize;
44 } 44 }
45 45
46 46
47 void Deoptimizer::DeoptimizeFunctionWithPreparedFunctionList( 47 void Deoptimizer::DeoptimizeFunctionWithPreparedFunctionList(
48 JSFunction* function) { 48 JSFunction* function) {
49 Isolate* isolate = function->GetIsolate(); 49 Isolate* isolate = function->GetIsolate();
50 HandleScope scope(isolate); 50 HandleScope scope(isolate);
51 AssertNoAllocation no_allocation; 51 DisallowHeapAllocation no_allocation;
52 52
53 ASSERT(function->IsOptimized()); 53 ASSERT(function->IsOptimized());
54 ASSERT(function->FunctionsInFunctionListShareSameCode()); 54 ASSERT(function->FunctionsInFunctionListShareSameCode());
55 55
56 // Get the optimized code. 56 // Get the optimized code.
57 Code* code = function->code(); 57 Code* code = function->code();
58 Address code_start_address = code->instruction_start(); 58 Address code_start_address = code->instruction_start();
59 59
60 // The optimized code is going to be patched, so we cannot use it any more. 60 // The optimized code is going to be patched, so we cannot use it any more.
61 function->shared()->EvictFromOptimizedCodeMap(code, "deoptimized function"); 61 function->shared()->EvictFromOptimizedCodeMap(code, "deoptimized function");
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 __ push(ip); 652 __ push(ip);
653 __ b(&done); 653 __ b(&done);
654 ASSERT(masm()->pc_offset() - start == table_entry_size_); 654 ASSERT(masm()->pc_offset() - start == table_entry_size_);
655 } 655 }
656 __ bind(&done); 656 __ bind(&done);
657 } 657 }
658 658
659 #undef __ 659 #undef __
660 660
661 } } // namespace v8::internal 661 } } // namespace v8::internal
OLDNEW
« src/api.cc ('K') | « src/arm/assembler-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698