| OLD | NEW | 
|     1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file |     1 // Copyright (c) 2013, 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/deopt_instructions.h" |     5 #include "vm/deopt_instructions.h" | 
|     6  |     6  | 
|     7 #include "vm/assembler.h" |     7 #include "vm/assembler.h" | 
|     8 #include "vm/code_patcher.h" |     8 #include "vm/code_patcher.h" | 
|     9 #include "vm/compiler.h" |     9 #include "vm/compiler.h" | 
|    10 #include "vm/intermediate_language.h" |    10 #include "vm/intermediate_language.h" | 
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1184       return i; |  1184       return i; | 
|  1185     } |  1185     } | 
|  1186   } |  1186   } | 
|  1187   return -1; |  1187   return -1; | 
|  1188 } |  1188 } | 
|  1189  |  1189  | 
|  1190  |  1190  | 
|  1191 static uint8_t* ZoneReAlloc(uint8_t* ptr, |  1191 static uint8_t* ZoneReAlloc(uint8_t* ptr, | 
|  1192                             intptr_t old_size, |  1192                             intptr_t old_size, | 
|  1193                             intptr_t new_size) { |  1193                             intptr_t new_size) { | 
|  1194   return Isolate::Current()->current_zone()->Realloc<uint8_t>( |  1194   return Thread::Current()->zone()->Realloc<uint8_t>( | 
|  1195       ptr, old_size, new_size); |  1195       ptr, old_size, new_size); | 
|  1196 } |  1196 } | 
|  1197  |  1197  | 
|  1198  |  1198  | 
|  1199 RawTypedData* DeoptInfoBuilder::CreateDeoptInfo(const Array& deopt_table) { |  1199 RawTypedData* DeoptInfoBuilder::CreateDeoptInfo(const Array& deopt_table) { | 
|  1200   intptr_t length = instructions_.length(); |  1200   intptr_t length = instructions_.length(); | 
|  1201  |  1201  | 
|  1202   // Count the number of instructions that are a shared suffix of some deopt |  1202   // Count the number of instructions that are a shared suffix of some deopt | 
|  1203   // info already written. |  1203   // info already written. | 
|  1204   TrieNode* suffix = trie_root_; |  1204   TrieNode* suffix = trie_root_; | 
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1294                           Smi* offset, |  1294                           Smi* offset, | 
|  1295                           TypedData* info, |  1295                           TypedData* info, | 
|  1296                           Smi* reason) { |  1296                           Smi* reason) { | 
|  1297   intptr_t i = index * kEntrySize; |  1297   intptr_t i = index * kEntrySize; | 
|  1298   *offset ^= table.At(i); |  1298   *offset ^= table.At(i); | 
|  1299   *info ^= table.At(i + 1); |  1299   *info ^= table.At(i + 1); | 
|  1300   *reason ^= table.At(i + 2); |  1300   *reason ^= table.At(i + 2); | 
|  1301 } |  1301 } | 
|  1302  |  1302  | 
|  1303 }  // namespace dart |  1303 }  // namespace dart | 
| OLD | NEW |