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

Side by Side Diff: src/deoptimizer.cc

Issue 1083193005: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix return from new func Created 5 years, 8 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
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.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 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 intptr_t constant_pool_value = 1224 intptr_t constant_pool_value =
1225 reinterpret_cast<intptr_t>(adaptor_trampoline->constant_pool()); 1225 reinterpret_cast<intptr_t>(adaptor_trampoline->constant_pool());
1226 output_frame->SetConstantPool(constant_pool_value); 1226 output_frame->SetConstantPool(constant_pool_value);
1227 } 1227 }
1228 } 1228 }
1229 1229
1230 1230
1231 void Deoptimizer::DoComputeConstructStubFrame(TranslationIterator* iterator, 1231 void Deoptimizer::DoComputeConstructStubFrame(TranslationIterator* iterator,
1232 int frame_index) { 1232 int frame_index) {
1233 Builtins* builtins = isolate_->builtins(); 1233 Builtins* builtins = isolate_->builtins();
1234 // TODO(arv): What about this one?
1234 Code* construct_stub = builtins->builtin(Builtins::kJSConstructStubGeneric); 1235 Code* construct_stub = builtins->builtin(Builtins::kJSConstructStubGeneric);
1235 JSFunction* function = JSFunction::cast(ComputeLiteral(iterator->Next())); 1236 JSFunction* function = JSFunction::cast(ComputeLiteral(iterator->Next()));
1236 unsigned height = iterator->Next(); 1237 unsigned height = iterator->Next();
1237 unsigned height_in_bytes = height * kPointerSize; 1238 unsigned height_in_bytes = height * kPointerSize;
1238 if (trace_scope_ != NULL) { 1239 if (trace_scope_ != NULL) {
1239 PrintF(trace_scope_->file(), 1240 PrintF(trace_scope_->file(),
1240 " translating construct stub => height=%d\n", height_in_bytes); 1241 " translating construct stub => height=%d\n", height_in_bytes);
1241 } 1242 }
1242 1243
1243 unsigned fixed_frame_size = ConstructFrameConstants::kFrameSize; 1244 unsigned fixed_frame_size = ConstructFrameConstants::kFrameSize;
(...skipping 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after
3662 int raw_position = static_cast<int>(info->data()); 3663 int raw_position = static_cast<int>(info->data());
3663 last_position = raw_position ? SourcePosition::FromRaw(raw_position) 3664 last_position = raw_position ? SourcePosition::FromRaw(raw_position)
3664 : SourcePosition::Unknown(); 3665 : SourcePosition::Unknown();
3665 } else if (info->rmode() == RelocInfo::DEOPT_REASON) { 3666 } else if (info->rmode() == RelocInfo::DEOPT_REASON) {
3666 last_reason = static_cast<Deoptimizer::DeoptReason>(info->data()); 3667 last_reason = static_cast<Deoptimizer::DeoptReason>(info->data());
3667 } 3668 }
3668 } 3669 }
3669 return DeoptInfo(SourcePosition::Unknown(), NULL, Deoptimizer::kNoReason); 3670 return DeoptInfo(SourcePosition::Unknown(), NULL, Deoptimizer::kNoReason);
3670 } 3671 }
3671 } } // namespace v8::internal 3672 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698