OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |