| OLD | NEW | 
|---|
| 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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 698   data->SetTranslationByteArray(*translations); | 698   data->SetTranslationByteArray(*translations); | 
| 699   data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 699   data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 
| 700 | 700 | 
| 701   Handle<FixedArray> literals = | 701   Handle<FixedArray> literals = | 
| 702       factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 702       factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 
| 703   for (int i = 0; i < deoptimization_literals_.length(); i++) { | 703   for (int i = 0; i < deoptimization_literals_.length(); i++) { | 
| 704     literals->set(i, *deoptimization_literals_[i]); | 704     literals->set(i, *deoptimization_literals_[i]); | 
| 705   } | 705   } | 
| 706   data->SetLiteralArray(*literals); | 706   data->SetLiteralArray(*literals); | 
| 707 | 707 | 
| 708   data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id())); | 708   data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); | 
| 709   data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); | 709   data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); | 
| 710 | 710 | 
| 711   // Populate the deoptimization entries. | 711   // Populate the deoptimization entries. | 
| 712   for (int i = 0; i < length; i++) { | 712   for (int i = 0; i < length; i++) { | 
| 713     LEnvironment* env = deoptimizations_[i]; | 713     LEnvironment* env = deoptimizations_[i]; | 
| 714     data->SetAstId(i, Smi::FromInt(env->ast_id())); | 714     data->SetAstId(i, env->ast_id()); | 
| 715     data->SetTranslationIndex(i, Smi::FromInt(env->translation_index())); | 715     data->SetTranslationIndex(i, Smi::FromInt(env->translation_index())); | 
| 716     data->SetArgumentsStackHeight(i, | 716     data->SetArgumentsStackHeight(i, | 
| 717                                   Smi::FromInt(env->arguments_stack_height())); | 717                                   Smi::FromInt(env->arguments_stack_height())); | 
| 718     data->SetPc(i, Smi::FromInt(env->pc_offset())); | 718     data->SetPc(i, Smi::FromInt(env->pc_offset())); | 
| 719   } | 719   } | 
| 720   code->set_deoptimization_data(*data); | 720   code->set_deoptimization_data(*data); | 
| 721 } | 721 } | 
| 722 | 722 | 
| 723 | 723 | 
| 724 int LCodeGen::DefineDeoptimizationLiteral(Handle<Object> literal) { | 724 int LCodeGen::DefineDeoptimizationLiteral(Handle<Object> literal) { | 
| (...skipping 4739 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5464   __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5464   __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 
| 5465   __ ldr(result, FieldMemOperand(scratch, | 5465   __ ldr(result, FieldMemOperand(scratch, | 
| 5466                                  FixedArray::kHeaderSize - kPointerSize)); | 5466                                  FixedArray::kHeaderSize - kPointerSize)); | 
| 5467   __ bind(&done); | 5467   __ bind(&done); | 
| 5468 } | 5468 } | 
| 5469 | 5469 | 
| 5470 | 5470 | 
| 5471 #undef __ | 5471 #undef __ | 
| 5472 | 5472 | 
| 5473 } }  // namespace v8::internal | 5473 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|