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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 261 }
262 262
263 263
264 void LCodeGen::CallCode(Handle<Code> code, 264 void LCodeGen::CallCode(Handle<Code> code,
265 RelocInfo::Mode mode, 265 RelocInfo::Mode mode,
266 LInstruction* instr) { 266 LInstruction* instr) {
267 Abort("Unimplemented: %s", "CallCode"); 267 Abort("Unimplemented: %s", "CallCode");
268 } 268 }
269 269
270 270
271 void LCodeGen::CallRuntime(Runtime::Function* function, 271 void LCodeGen::CallRuntime(const Runtime::Function* function,
272 int num_arguments, 272 int num_arguments,
273 LInstruction* instr) { 273 LInstruction* instr) {
274 Abort("Unimplemented: %s", "CallRuntime"); 274 Abort("Unimplemented: %s", "CallRuntime");
275 } 275 }
276 276
277 277
278 void LCodeGen::RegisterLazyDeoptimization(LInstruction* instr) { 278 void LCodeGen::RegisterLazyDeoptimization(LInstruction* instr) {
279 // Create the environment to bailout to. If the call has side effects 279 // Create the environment to bailout to. If the call has side effects
280 // execution has to continue after the call otherwise execution can continue 280 // execution has to continue after the call otherwise execution can continue
281 // from a previous bailout point repeating the call. 281 // from a previous bailout point repeating the call.
(...skipping 18 matching lines...) Expand all
300 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { 300 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) {
301 Abort("Unimplemented: %s", "Deoptimiz"); 301 Abort("Unimplemented: %s", "Deoptimiz");
302 } 302 }
303 303
304 304
305 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 305 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
306 int length = deoptimizations_.length(); 306 int length = deoptimizations_.length();
307 if (length == 0) return; 307 if (length == 0) return;
308 ASSERT(FLAG_deopt); 308 ASSERT(FLAG_deopt);
309 Handle<DeoptimizationInputData> data = 309 Handle<DeoptimizationInputData> data =
310 Factory::NewDeoptimizationInputData(length, TENURED); 310 FACTORY->NewDeoptimizationInputData(length, TENURED);
311 311
312 data->SetTranslationByteArray(*translations_.CreateByteArray()); 312 data->SetTranslationByteArray(*translations_.CreateByteArray());
313 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 313 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
314 314
315 Handle<FixedArray> literals = 315 Handle<FixedArray> literals =
316 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED); 316 FACTORY->NewFixedArray(deoptimization_literals_.length(), TENURED);
317 for (int i = 0; i < deoptimization_literals_.length(); i++) { 317 for (int i = 0; i < deoptimization_literals_.length(); i++) {
318 literals->set(i, *deoptimization_literals_[i]); 318 literals->set(i, *deoptimization_literals_[i]);
319 } 319 }
320 data->SetLiteralArray(*literals); 320 data->SetLiteralArray(*literals);
321 321
322 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id())); 322 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id()));
323 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); 323 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_));
324 324
325 // Populate the deoptimization entries. 325 // Populate the deoptimization entries.
326 for (int i = 0; i < length; i++) { 326 for (int i = 0; i < length; i++) {
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 1124
1125 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 1125 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
1126 Abort("Unimplemented: %s", "DoOsrEntry"); 1126 Abort("Unimplemented: %s", "DoOsrEntry");
1127 } 1127 }
1128 1128
1129 #undef __ 1129 #undef __
1130 1130
1131 } } // namespace v8::internal 1131 } } // namespace v8::internal
1132 1132
1133 #endif // V8_TARGET_ARCH_X64 1133 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698