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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
476 19, | 476 19, |
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 Add(ExternalReference::re_word_character_map().address(), | |
487 UNCLASSIFIED, | |
488 22, | |
489 "NativeRegExpMacroAssembler::word_character_bitmap"); | |
Erik Corry
2010/01/15 12:02:09
byte!
| |
486 #endif | 490 #endif |
487 // Keyed lookup cache. | 491 // Keyed lookup cache. |
488 Add(ExternalReference::keyed_lookup_cache_keys().address(), | 492 Add(ExternalReference::keyed_lookup_cache_keys().address(), |
489 UNCLASSIFIED, | 493 UNCLASSIFIED, |
490 22, | 494 23, |
491 "KeyedLookupCache::keys()"); | 495 "KeyedLookupCache::keys()"); |
492 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), | 496 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), |
493 UNCLASSIFIED, | 497 UNCLASSIFIED, |
494 23, | 498 24, |
495 "KeyedLookupCache::field_offsets()"); | 499 "KeyedLookupCache::field_offsets()"); |
496 } | 500 } |
497 | 501 |
498 | 502 |
499 ExternalReferenceEncoder::ExternalReferenceEncoder() | 503 ExternalReferenceEncoder::ExternalReferenceEncoder() |
500 : encodings_(Match) { | 504 : encodings_(Match) { |
501 ExternalReferenceTable* external_references = | 505 ExternalReferenceTable* external_references = |
502 ExternalReferenceTable::instance(); | 506 ExternalReferenceTable::instance(); |
503 for (int i = 0; i < external_references->size(); ++i) { | 507 for (int i = 0; i < external_references->size(); ++i) { |
504 Put(external_references->address(i), i); | 508 Put(external_references->address(i), i); |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1250 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1254 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
1251 } | 1255 } |
1252 } | 1256 } |
1253 int allocation_address = fullness_[space]; | 1257 int allocation_address = fullness_[space]; |
1254 fullness_[space] = allocation_address + size; | 1258 fullness_[space] = allocation_address + size; |
1255 return allocation_address; | 1259 return allocation_address; |
1256 } | 1260 } |
1257 | 1261 |
1258 | 1262 |
1259 } } // namespace v8::internal | 1263 } } // namespace v8::internal |
OLD | NEW |