| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 477 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
| 478 Add(ExternalReference::re_check_stack_guard_state().address(), | 478 Add(ExternalReference::re_check_stack_guard_state().address(), |
| 479 UNCLASSIFIED, | 479 UNCLASSIFIED, |
| 480 20, | 480 20, |
| 481 "RegExpMacroAssembler*::CheckStackGuardState()"); | 481 "RegExpMacroAssembler*::CheckStackGuardState()"); |
| 482 Add(ExternalReference::re_grow_stack().address(), | 482 Add(ExternalReference::re_grow_stack().address(), |
| 483 UNCLASSIFIED, | 483 UNCLASSIFIED, |
| 484 21, | 484 21, |
| 485 "NativeRegExpMacroAssembler::GrowStack()"); | 485 "NativeRegExpMacroAssembler::GrowStack()"); |
| 486 #endif | 486 #endif |
| 487 // Keyed lookup cache. | |
| 488 Add(ExternalReference::keyed_lookup_cache_keys().address(), | |
| 489 UNCLASSIFIED, | |
| 490 22, | |
| 491 "KeyedLookupCache::keys()"); | |
| 492 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), | |
| 493 UNCLASSIFIED, | |
| 494 23, | |
| 495 "KeyedLookupCache::field_offsets()"); | |
| 496 } | 487 } |
| 497 | 488 |
| 498 | 489 |
| 499 ExternalReferenceEncoder::ExternalReferenceEncoder() | 490 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 500 : encodings_(Match) { | 491 : encodings_(Match) { |
| 501 ExternalReferenceTable* external_references = | 492 ExternalReferenceTable* external_references = |
| 502 ExternalReferenceTable::instance(); | 493 ExternalReferenceTable::instance(); |
| 503 for (int i = 0; i < external_references->size(); ++i) { | 494 for (int i = 0; i < external_references->size(); ++i) { |
| 504 Put(external_references->address(i), i); | 495 Put(external_references->address(i), i); |
| 505 } | 496 } |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1212 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1222 } | 1213 } |
| 1223 } | 1214 } |
| 1224 int allocation_address = fullness_[space]; | 1215 int allocation_address = fullness_[space]; |
| 1225 fullness_[space] = allocation_address + size; | 1216 fullness_[space] = allocation_address + size; |
| 1226 return allocation_address; | 1217 return allocation_address; |
| 1227 } | 1218 } |
| 1228 | 1219 |
| 1229 | 1220 |
| 1230 } } // namespace v8::internal | 1221 } } // namespace v8::internal |
| OLD | NEW |