| 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 | 5 |
| 6 #include "src/v8.h" | 6 #include "src/v8.h" |
| 7 | 7 |
| 8 #include "src/liveedit.h" | 8 #include "src/liveedit.h" |
| 9 | 9 |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace v8 { | 22 namespace v8 { |
| 23 namespace internal { | 23 namespace internal { |
| 24 | 24 |
| 25 void SetElementSloppy(Handle<JSObject> object, | 25 void SetElementSloppy(Handle<JSObject> object, |
| 26 uint32_t index, | 26 uint32_t index, |
| 27 Handle<Object> value) { | 27 Handle<Object> value) { |
| 28 // Ignore return value from SetElement. It can only be a failure if there | 28 // Ignore return value from SetElement. It can only be a failure if there |
| 29 // are element setters causing exceptions and the debugger context has none | 29 // are element setters causing exceptions and the debugger context has none |
| 30 // of these. | 30 // of these. |
| 31 JSObject::SetElement(object, index, value, SLOPPY).Assert(); | 31 Object::SetElement(object->GetIsolate(), object, index, value, SLOPPY) |
| 32 .Assert(); |
| 32 } | 33 } |
| 33 | 34 |
| 34 | 35 |
| 35 // A simple implementation of dynamic programming algorithm. It solves | 36 // A simple implementation of dynamic programming algorithm. It solves |
| 36 // the problem of finding the difference of 2 arrays. It uses a table of results | 37 // the problem of finding the difference of 2 arrays. It uses a table of results |
| 37 // of subproblems. Each cell contains a number together with 2-bit flag | 38 // of subproblems. Each cell contains a number together with 2-bit flag |
| 38 // that helps building the chunk list. | 39 // that helps building the chunk list. |
| 39 class Differencer { | 40 class Differencer { |
| 40 public: | 41 public: |
| 41 explicit Differencer(Comparator::Input* input) | 42 explicit Differencer(Comparator::Input* input) |
| (...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 isolate_->active_function_info_listener()->FunctionCode(code); | 2059 isolate_->active_function_info_listener()->FunctionCode(code); |
| 2059 } | 2060 } |
| 2060 | 2061 |
| 2061 | 2062 |
| 2062 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 2063 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 2063 return isolate->active_function_info_listener() != NULL; | 2064 return isolate->active_function_info_listener() != NULL; |
| 2064 } | 2065 } |
| 2065 | 2066 |
| 2066 } // namespace internal | 2067 } // namespace internal |
| 2067 } // namespace v8 | 2068 } // namespace v8 |
| OLD | NEW |