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

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

Issue 163913003: Fix A64 build: unwrap HSourcePosition into int before recording. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: set optimization id Created 6 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/a64/lithium-a64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 775
776 776
777 bool LCodeGen::GenerateDeferredCode() { 777 bool LCodeGen::GenerateDeferredCode() {
778 ASSERT(is_generating()); 778 ASSERT(is_generating());
779 if (deferred_.length() > 0) { 779 if (deferred_.length() > 0) {
780 for (int i = 0; !is_aborted() && (i < deferred_.length()); i++) { 780 for (int i = 0; !is_aborted() && (i < deferred_.length()); i++) {
781 LDeferredCode* code = deferred_[i]; 781 LDeferredCode* code = deferred_[i];
782 782
783 HValue* value = 783 HValue* value =
784 instructions_->at(code->instruction_index())->hydrogen_value(); 784 instructions_->at(code->instruction_index())->hydrogen_value();
785 RecordAndWritePosition(value->position()); 785 RecordAndWritePosition(
786 chunk()->graph()->SourcePositionToScriptPosition(value->position()));
786 787
787 Comment(";;; <@%d,#%d> " 788 Comment(";;; <@%d,#%d> "
788 "-------------------- Deferred %s --------------------", 789 "-------------------- Deferred %s --------------------",
789 code->instruction_index(), 790 code->instruction_index(),
790 code->instr()->hydrogen_value()->id(), 791 code->instr()->hydrogen_value()->id(),
791 code->instr()->Mnemonic()); 792 code->instr()->Mnemonic());
792 793
793 __ Bind(code->entry()); 794 __ Bind(code->entry());
794 795
795 if (NeedsDeferredFrame()) { 796 if (NeedsDeferredFrame()) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 int length = deoptimizations_.length(); 911 int length = deoptimizations_.length();
911 if (length == 0) return; 912 if (length == 0) return;
912 913
913 Handle<DeoptimizationInputData> data = 914 Handle<DeoptimizationInputData> data =
914 factory()->NewDeoptimizationInputData(length, TENURED); 915 factory()->NewDeoptimizationInputData(length, TENURED);
915 916
916 Handle<ByteArray> translations = 917 Handle<ByteArray> translations =
917 translations_.CreateByteArray(isolate()->factory()); 918 translations_.CreateByteArray(isolate()->factory());
918 data->SetTranslationByteArray(*translations); 919 data->SetTranslationByteArray(*translations);
919 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 920 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
921 data->SetOptimizationId(Smi::FromInt(info_->optimization_id()));
920 922
921 Handle<FixedArray> literals = 923 Handle<FixedArray> literals =
922 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); 924 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED);
923 { AllowDeferredHandleDereference copy_handles; 925 { AllowDeferredHandleDereference copy_handles;
924 for (int i = 0; i < deoptimization_literals_.length(); i++) { 926 for (int i = 0; i < deoptimization_literals_.length(); i++) {
925 literals->set(i, *deoptimization_literals_[i]); 927 literals->set(i, *deoptimization_literals_[i]);
926 } 928 }
927 data->SetLiteralArray(*literals); 929 data->SetLiteralArray(*literals);
928 } 930 }
929 931
(...skipping 4785 matching lines...) Expand 10 before | Expand all | Expand 10 after
5715 __ Bind(&out_of_object); 5717 __ Bind(&out_of_object);
5716 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5718 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5717 // Index is equal to negated out of object property index plus 1. 5719 // Index is equal to negated out of object property index plus 1.
5718 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5720 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5719 __ Ldr(result, FieldMemOperand(result, 5721 __ Ldr(result, FieldMemOperand(result,
5720 FixedArray::kHeaderSize - kPointerSize)); 5722 FixedArray::kHeaderSize - kPointerSize));
5721 __ Bind(&done); 5723 __ Bind(&done);
5722 } 5724 }
5723 5725
5724 } } // namespace v8::internal 5726 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/lithium-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698