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

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

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: 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/lithium-codegen.h ('k') | src/liveedit-debugger.js » ('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 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 if (FLAG_code_comments && instr->HasInterestingComment(codegen)) { 100 if (FLAG_code_comments && instr->HasInterestingComment(codegen)) {
101 Comment(";;; <@%d,#%d> %s", 101 Comment(";;; <@%d,#%d> %s",
102 current_instruction_, 102 current_instruction_,
103 instr->hydrogen_value()->id(), 103 instr->hydrogen_value()->id(),
104 instr->Mnemonic()); 104 instr->Mnemonic());
105 } 105 }
106 106
107 GenerateBodyInstructionPre(instr); 107 GenerateBodyInstructionPre(instr);
108 108
109 RecordAndUpdatePosition(instr->position()); 109 HValue* value = instr->hydrogen_value();
110 if (value->position() != RelocInfo::kNoPosition) {
111 ASSERT(!graph()->info()->IsOptimizing() ||
112 !FLAG_emit_opt_code_positions ||
113 value->position() != RelocInfo::kNoPosition);
114 RecordAndWritePosition(value->position());
115 }
110 116
111 instr->CompileToNative(codegen); 117 instr->CompileToNative(codegen);
112 118
113 GenerateBodyInstructionPost(instr); 119 GenerateBodyInstructionPost(instr);
114 } 120 }
115 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); 121 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size());
116 last_lazy_deopt_pc_ = masm()->pc_offset(); 122 last_lazy_deopt_pc_ = masm()->pc_offset();
117 return !is_aborted(); 123 return !is_aborted();
118 } 124 }
119 125
(...skipping 18 matching lines...) Expand all
138 144
139 int LCodeGenBase::GetNextEmittedBlock() const { 145 int LCodeGenBase::GetNextEmittedBlock() const {
140 for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { 146 for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) {
141 if (!chunk_->GetLabel(i)->HasReplacement()) return i; 147 if (!chunk_->GetLabel(i)->HasReplacement()) return i;
142 } 148 }
143 return -1; 149 return -1;
144 } 150 }
145 151
146 152
147 } } // namespace v8::internal 153 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium-codegen.h ('k') | src/liveedit-debugger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698