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

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

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 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/code-stubs-arm.cc ('k') | src/arm/disasm-arm.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 DeoptimizationInputData::cast(code->deoptimization_data()); 42 DeoptimizationInputData::cast(code->deoptimization_data());
43 int osr_offset = data->OsrPcOffset()->value(); 43 int osr_offset = data->OsrPcOffset()->value();
44 if (osr_offset > 0) { 44 if (osr_offset > 0) {
45 CodePatcher osr_patcher(code->instruction_start() + osr_offset, 1); 45 CodePatcher osr_patcher(code->instruction_start() + osr_offset, 1);
46 osr_patcher.masm()->bkpt(0); 46 osr_patcher.masm()->bkpt(0);
47 } 47 }
48 } 48 }
49 49
50 DeoptimizationInputData* deopt_data = 50 DeoptimizationInputData* deopt_data =
51 DeoptimizationInputData::cast(code->deoptimization_data()); 51 DeoptimizationInputData::cast(code->deoptimization_data());
52 SharedFunctionInfo* shared =
53 SharedFunctionInfo::cast(deopt_data->SharedFunctionInfo());
54 shared->EvictFromOptimizedCodeMap(code, "deoptimized code");
55 #ifdef DEBUG 52 #ifdef DEBUG
56 Address prev_call_address = NULL; 53 Address prev_call_address = NULL;
57 #endif 54 #endif
58 // For each LLazyBailout instruction insert a call to the corresponding 55 // For each LLazyBailout instruction insert a call to the corresponding
59 // deoptimization entry. 56 // deoptimization entry.
60 for (int i = 0; i < deopt_data->DeoptCount(); i++) { 57 for (int i = 0; i < deopt_data->DeoptCount(); i++) {
61 if (deopt_data->Pc(i)->value() == -1) continue; 58 if (deopt_data->Pc(i)->value() == -1) continue;
62 Address call_address = code_start_address + deopt_data->Pc(i)->value(); 59 Address call_address = code_start_address + deopt_data->Pc(i)->value();
63 Address deopt_entry = GetDeoptimizationEntry(isolate, i, LAZY); 60 Address deopt_entry = GetDeoptimizationEntry(isolate, i, LAZY);
64 // We need calls to have a predictable size in the unoptimized code, but 61 // We need calls to have a predictable size in the unoptimized code, but
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 345
349 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 346 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
350 ASSERT(FLAG_enable_ool_constant_pool); 347 ASSERT(FLAG_enable_ool_constant_pool);
351 SetFrameSlot(offset, value); 348 SetFrameSlot(offset, value);
352 } 349 }
353 350
354 351
355 #undef __ 352 #undef __
356 353
357 } } // namespace v8::internal 354 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698