| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "v8.h" | 5 #include "v8.h" | 
| 6 | 6 | 
| 7 #include "lithium-codegen.h" | 7 #include "lithium-codegen.h" | 
| 8 | 8 | 
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 | 
| 10 #include "ia32/lithium-ia32.h" | 10 #include "ia32/lithium-ia32.h" | 
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 132   StringBuilder builder(buffer, ARRAY_SIZE(buffer)); | 132   StringBuilder builder(buffer, ARRAY_SIZE(buffer)); | 
| 133   va_list arguments; | 133   va_list arguments; | 
| 134   va_start(arguments, format); | 134   va_start(arguments, format); | 
| 135   builder.AddFormattedList(format, arguments); | 135   builder.AddFormattedList(format, arguments); | 
| 136   va_end(arguments); | 136   va_end(arguments); | 
| 137 | 137 | 
| 138   // Copy the string before recording it in the assembler to avoid | 138   // Copy the string before recording it in the assembler to avoid | 
| 139   // issues when the stack allocated buffer goes out of scope. | 139   // issues when the stack allocated buffer goes out of scope. | 
| 140   size_t length = builder.position(); | 140   size_t length = builder.position(); | 
| 141   Vector<char> copy = Vector<char>::New(static_cast<int>(length) + 1); | 141   Vector<char> copy = Vector<char>::New(static_cast<int>(length) + 1); | 
| 142   MemCopy(copy.start(), builder.Finalize(), copy.length()); | 142   OS::MemCopy(copy.start(), builder.Finalize(), copy.length()); | 
| 143   masm()->RecordComment(copy.start()); | 143   masm()->RecordComment(copy.start()); | 
| 144 } | 144 } | 
| 145 | 145 | 
| 146 | 146 | 
| 147 int LCodeGenBase::GetNextEmittedBlock() const { | 147 int LCodeGenBase::GetNextEmittedBlock() const { | 
| 148   for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { | 148   for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { | 
| 149     if (!graph()->blocks()->at(i)->IsReachable()) continue; | 149     if (!graph()->blocks()->at(i)->IsReachable()) continue; | 
| 150     if (!chunk_->GetLabel(i)->HasReplacement()) return i; | 150     if (!chunk_->GetLabel(i)->HasReplacement()) return i; | 
| 151   } | 151   } | 
| 152   return -1; | 152   return -1; | 
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 224   chunk_->AddDeprecationDependency(map); | 224   chunk_->AddDeprecationDependency(map); | 
| 225 } | 225 } | 
| 226 | 226 | 
| 227 | 227 | 
| 228 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { | 228 void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { | 
| 229   if (!map->is_stable()) return Abort(kMapBecameUnstable); | 229   if (!map->is_stable()) return Abort(kMapBecameUnstable); | 
| 230   chunk_->AddStabilityDependency(map); | 230   chunk_->AddStabilityDependency(map); | 
| 231 } | 231 } | 
| 232 | 232 | 
| 233 } }  // namespace v8::internal | 233 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|