| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 6164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6175 } | 6175 } |
| 6176 | 6176 |
| 6177 static uint8_t* Reallocate(uint8_t* ptr, | 6177 static uint8_t* Reallocate(uint8_t* ptr, |
| 6178 intptr_t old_size, | 6178 intptr_t old_size, |
| 6179 intptr_t new_size) { | 6179 intptr_t new_size) { |
| 6180 void* new_ptr = ::realloc(reinterpret_cast<void*>(ptr), new_size); | 6180 void* new_ptr = ::realloc(reinterpret_cast<void*>(ptr), new_size); |
| 6181 return reinterpret_cast<uint8_t*>(new_ptr); | 6181 return reinterpret_cast<uint8_t*>(new_ptr); |
| 6182 } | 6182 } |
| 6183 | 6183 |
| 6184 static const int kInitialTokenCount = 32; | 6184 static const int kInitialTokenCount = 32; |
| 6185 static const intptr_t kTableSize = 128; | 6185 static const intptr_t kTableSize = 1024; |
| 6186 | 6186 |
| 6187 uint8_t* buffer_; | 6187 uint8_t* buffer_; |
| 6188 WriteStream stream_; | 6188 WriteStream stream_; |
| 6189 GrowableArray<intptr_t> ident_table_[kTableSize]; | 6189 GrowableArray<intptr_t> ident_table_[kTableSize]; |
| 6190 GrowableArray<intptr_t> literal_table_[kTableSize]; | 6190 GrowableArray<intptr_t> literal_table_[kTableSize]; |
| 6191 const GrowableObjectArray& token_objects_; | 6191 const GrowableObjectArray& token_objects_; |
| 6192 Object& token_obj_; | 6192 Object& token_obj_; |
| 6193 LiteralToken& literal_token_; | 6193 LiteralToken& literal_token_; |
| 6194 String& literal_str_; | 6194 String& literal_str_; |
| 6195 | 6195 |
| (...skipping 9120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15316 return "_MirrorReference"; | 15316 return "_MirrorReference"; |
| 15317 } | 15317 } |
| 15318 | 15318 |
| 15319 | 15319 |
| 15320 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15320 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 15321 JSONObject jsobj(stream); | 15321 JSONObject jsobj(stream); |
| 15322 } | 15322 } |
| 15323 | 15323 |
| 15324 | 15324 |
| 15325 } // namespace dart | 15325 } // namespace dart |
| OLD | NEW |