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

Unified Diff: src/frames.cc

Issue 1858773004: Revert of Correctly annotate eval origin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/frames.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 38086b5a6d90cc8668b92a6d66836df74d6a274a..0e57429ea3077e2f50e056369ff6406b0ed34b70 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -976,12 +976,6 @@
CannotDeoptFromAsmCode(Code::cast(abstract_code), function));
}
-FrameSummary FrameSummary::GetFirst(JavaScriptFrame* frame) {
- List<FrameSummary> frames(FLAG_max_inlining_levels + 1);
- frame->Summarize(&frames);
- return frames.first();
-}
-
void FrameSummary::Print() {
PrintF("receiver: ");
receiver_->ShortPrint();
@@ -1234,15 +1228,15 @@
SetExpression(index, Smi::FromInt(raw_offset));
}
-BytecodeArray* InterpretedFrame::GetBytecodeArray() const {
+Object* InterpretedFrame::GetBytecodeArray() const {
const int index = InterpreterFrameConstants::kBytecodeArrayExpressionIndex;
DCHECK_EQ(
InterpreterFrameConstants::kBytecodeArrayFromFp,
InterpreterFrameConstants::kExpressionsOffset - index * kPointerSize);
- return BytecodeArray::cast(GetExpression(index));
-}
-
-void InterpretedFrame::PatchBytecodeArray(BytecodeArray* bytecode_array) {
+ return GetExpression(index);
+}
+
+void InterpretedFrame::PatchBytecodeArray(Object* bytecode_array) {
const int index = InterpreterFrameConstants::kBytecodeArrayExpressionIndex;
DCHECK_EQ(
InterpreterFrameConstants::kBytecodeArrayFromFp,
« no previous file with comments | « src/frames.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698