OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/factory.h" | 5 #include "src/factory.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2551 debug_info->set_debugger_hints(shared->debugger_hints()); | 2551 debug_info->set_debugger_hints(shared->debugger_hints()); |
2552 debug_info->set_debug_bytecode_array(*maybe_debug_bytecode_array); | 2552 debug_info->set_debug_bytecode_array(*maybe_debug_bytecode_array); |
2553 debug_info->set_break_points(*break_points); | 2553 debug_info->set_break_points(*break_points); |
2554 | 2554 |
2555 // Link debug info to function. | 2555 // Link debug info to function. |
2556 shared->set_debug_info(*debug_info); | 2556 shared->set_debug_info(*debug_info); |
2557 | 2557 |
2558 return debug_info; | 2558 return debug_info; |
2559 } | 2559 } |
2560 | 2560 |
| 2561 Handle<BreakPoint> Factory::NewBreakPoint(Handle<String> condition, |
| 2562 Handle<Object> data) { |
| 2563 Handle<BreakPoint> new_break_point = |
| 2564 Handle<BreakPoint>::cast(NewStruct(BREAK_POINT_TYPE)); |
| 2565 new_break_point->set_condition(*condition); |
| 2566 new_break_point->set_data(*data); |
| 2567 return new_break_point; |
| 2568 } |
| 2569 |
2561 Handle<BreakPointInfo> Factory::NewBreakPointInfo(int source_position) { | 2570 Handle<BreakPointInfo> Factory::NewBreakPointInfo(int source_position) { |
2562 Handle<BreakPointInfo> new_break_point_info = | 2571 Handle<BreakPointInfo> new_break_point_info = |
2563 Handle<BreakPointInfo>::cast(NewStruct(BREAK_POINT_INFO_TYPE)); | 2572 Handle<BreakPointInfo>::cast(NewStruct(BREAK_POINT_INFO_TYPE)); |
2564 new_break_point_info->set_source_position(source_position); | 2573 new_break_point_info->set_source_position(source_position); |
2565 new_break_point_info->set_break_point_objects(*undefined_value()); | 2574 new_break_point_info->set_break_point_objects(*undefined_value()); |
2566 return new_break_point_info; | 2575 return new_break_point_info; |
2567 } | 2576 } |
2568 | 2577 |
2569 Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee, | 2578 Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee, |
2570 int length) { | 2579 int length) { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2865 Handle<AccessorInfo> prototype = | 2874 Handle<AccessorInfo> prototype = |
2866 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); | 2875 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); |
2867 Descriptor d = Descriptor::AccessorConstant( | 2876 Descriptor d = Descriptor::AccessorConstant( |
2868 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); | 2877 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); |
2869 map->AppendDescriptor(&d); | 2878 map->AppendDescriptor(&d); |
2870 } | 2879 } |
2871 } | 2880 } |
2872 | 2881 |
2873 } // namespace internal | 2882 } // namespace internal |
2874 } // namespace v8 | 2883 } // namespace v8 |
OLD | NEW |