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

Side by Side Diff: src/debug/liveedit.cc

Issue 2396353002: Revert "Add Smi::Zero and replace all Smi::FromInt(0) calls" (Closed)
Patch Set: Created 4 years, 2 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/debug/debug.h ('k') | src/deoptimizer.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/debug/liveedit.h" 5 #include "src/debug/liveedit.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compilation-cache.h" 9 #include "src/compilation-cache.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 1419
1420 Handle<Code> code = isolate->builtins()->FrameDropper_LiveEdit(); 1420 Handle<Code> code = isolate->builtins()->FrameDropper_LiveEdit();
1421 *top_frame_pc_address = code->entry(); 1421 *top_frame_pc_address = code->entry();
1422 pre_top_frame->SetCallerFp(bottom_js_frame->fp()); 1422 pre_top_frame->SetCallerFp(bottom_js_frame->fp());
1423 1423
1424 SetUpFrameDropperFrame(bottom_js_frame, code); 1424 SetUpFrameDropperFrame(bottom_js_frame, code);
1425 1425
1426 for (Address a = unused_stack_top; 1426 for (Address a = unused_stack_top;
1427 a < unused_stack_bottom; 1427 a < unused_stack_bottom;
1428 a += kPointerSize) { 1428 a += kPointerSize) {
1429 Memory::Object_at(a) = Smi::kZero; 1429 Memory::Object_at(a) = Smi::FromInt(0);
1430 } 1430 }
1431 1431
1432 return NULL; 1432 return NULL;
1433 } 1433 }
1434 1434
1435 1435
1436 // Describes a set of call frames that execute any of listed functions. 1436 // Describes a set of call frames that execute any of listed functions.
1437 // Finding no such frames does not mean error. 1437 // Finding no such frames does not mean error.
1438 class MultipleFunctionTarget { 1438 class MultipleFunctionTarget {
1439 public: 1439 public:
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 scope_info_length++; 1916 scope_info_length++;
1917 1917
1918 current_scope = current_scope->outer_scope(); 1918 current_scope = current_scope->outer_scope();
1919 } 1919 }
1920 1920
1921 return scope_info_list; 1921 return scope_info_list;
1922 } 1922 }
1923 1923
1924 } // namespace internal 1924 } // namespace internal
1925 } // namespace v8 1925 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/debug.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698