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

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

Issue 12314152: Miscellaneous profile-driven Isolate plumbing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/serialize.cc ('k') | src/x64/lithium-codegen-x64.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #endif 78 #endif
79 DeoptimizationInputData* deopt_data = 79 DeoptimizationInputData* deopt_data =
80 DeoptimizationInputData::cast(code->deoptimization_data()); 80 DeoptimizationInputData::cast(code->deoptimization_data());
81 for (int i = 0; i < deopt_data->DeoptCount(); i++) { 81 for (int i = 0; i < deopt_data->DeoptCount(); i++) {
82 if (deopt_data->Pc(i)->value() == -1) continue; 82 if (deopt_data->Pc(i)->value() == -1) continue;
83 // Position where Call will be patched in. 83 // Position where Call will be patched in.
84 Address call_address = instruction_start + deopt_data->Pc(i)->value(); 84 Address call_address = instruction_start + deopt_data->Pc(i)->value();
85 // There is room enough to write a long call instruction because we pad 85 // There is room enough to write a long call instruction because we pad
86 // LLazyBailout instructions with nops if necessary. 86 // LLazyBailout instructions with nops if necessary.
87 CodePatcher patcher(call_address, Assembler::kCallInstructionLength); 87 CodePatcher patcher(call_address, Assembler::kCallInstructionLength);
88 patcher.masm()->Call(GetDeoptimizationEntry(i, LAZY), RelocInfo::NONE64); 88 patcher.masm()->Call(GetDeoptimizationEntry(isolate, i, LAZY),
89 RelocInfo::NONE64);
89 ASSERT(prev_call_address == NULL || 90 ASSERT(prev_call_address == NULL ||
90 call_address >= prev_call_address + patch_size()); 91 call_address >= prev_call_address + patch_size());
91 ASSERT(call_address + patch_size() <= code->instruction_end()); 92 ASSERT(call_address + patch_size() <= code->instruction_end());
92 #ifdef DEBUG 93 #ifdef DEBUG
93 prev_call_address = call_address; 94 prev_call_address = call_address;
94 #endif 95 #endif
95 } 96 }
96 97
97 // Add the deoptimizing code to the list. 98 // Add the deoptimizing code to the list.
98 DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code); 99 DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code);
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 } 1287 }
1287 __ bind(&done); 1288 __ bind(&done);
1288 } 1289 }
1289 1290
1290 #undef __ 1291 #undef __
1291 1292
1292 1293
1293 } } // namespace v8::internal 1294 } } // namespace v8::internal
1294 1295
1295 #endif // V8_TARGET_ARCH_X64 1296 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698