| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 int get_value4(int i1, int i2) { | 168 int get_value4(int i1, int i2) { |
| 169 return get_cell(i1, i2) & (kMaxUInt32 ^ kDirectionMask); | 169 return get_cell(i1, i2) & (kMaxUInt32 ^ kDirectionMask); |
| 170 } | 170 } |
| 171 Direction get_direction(int i1, int i2) { | 171 Direction get_direction(int i1, int i2) { |
| 172 return static_cast<Direction>(get_cell(i1, i2) & kDirectionMask); | 172 return static_cast<Direction>(get_cell(i1, i2) & kDirectionMask); |
| 173 } | 173 } |
| 174 | 174 |
| 175 static const int kDirectionSizeBits = 2; | 175 static const int kDirectionSizeBits = 2; |
| 176 static const int kDirectionMask = (1 << kDirectionSizeBits) - 1; | 176 static const int kDirectionMask = (1 << kDirectionSizeBits) - 1; |
| 177 static const int kEmptyCellValue = -1 << kDirectionSizeBits; | 177 static const int kEmptyCellValue = ~0u << kDirectionSizeBits; |
| 178 | 178 |
| 179 // This method only holds static assert statement (unfortunately you cannot | 179 // This method only holds static assert statement (unfortunately you cannot |
| 180 // place one in class scope). | 180 // place one in class scope). |
| 181 void StaticAssertHolder() { | 181 void StaticAssertHolder() { |
| 182 STATIC_ASSERT(MAX_DIRECTION_FLAG_VALUE < (1 << kDirectionSizeBits)); | 182 STATIC_ASSERT(MAX_DIRECTION_FLAG_VALUE < (1 << kDirectionSizeBits)); |
| 183 } | 183 } |
| 184 | 184 |
| 185 class ResultWriter { | 185 class ResultWriter { |
| 186 public: | 186 public: |
| 187 explicit ResultWriter(Comparator::Output* chunk_writer) | 187 explicit ResultWriter(Comparator::Output* chunk_writer) |
| (...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { | 2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { |
| 2079 isolate_->active_function_info_listener()->FunctionCode(code); | 2079 isolate_->active_function_info_listener()->FunctionCode(code); |
| 2080 } | 2080 } |
| 2081 | 2081 |
| 2082 | 2082 |
| 2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
| 2084 return isolate->active_function_info_listener() != NULL; | 2084 return isolate->active_function_info_listener() != NULL; |
| 2085 } | 2085 } |
| 2086 | 2086 |
| 2087 } } // namespace v8::internal | 2087 } } // namespace v8::internal |
| OLD | NEW |