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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 17, | 407 17, |
408 "div_two_doubles"); | 408 "div_two_doubles"); |
409 Add(ExternalReference::double_fp_operation(Token::MOD).address(), | 409 Add(ExternalReference::double_fp_operation(Token::MOD).address(), |
410 UNCLASSIFIED, | 410 UNCLASSIFIED, |
411 18, | 411 18, |
412 "mod_two_doubles"); | 412 "mod_two_doubles"); |
413 Add(ExternalReference::compare_doubles().address(), | 413 Add(ExternalReference::compare_doubles().address(), |
414 UNCLASSIFIED, | 414 UNCLASSIFIED, |
415 19, | 415 19, |
416 "compare_doubles"); | 416 "compare_doubles"); |
417 Add(ExternalReference::compile_array_pop_call().address(), | |
418 UNCLASSIFIED, | |
419 20, | |
420 "compile_array_pop"); | |
421 Add(ExternalReference::compile_array_push_call().address(), | |
422 UNCLASSIFIED, | |
423 21, | |
424 "compile_array_push"); | |
425 #ifndef V8_INTERPRETED_REGEXP | 417 #ifndef V8_INTERPRETED_REGEXP |
426 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), | 418 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), |
427 UNCLASSIFIED, | 419 UNCLASSIFIED, |
428 22, | 420 20, |
429 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 421 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
430 Add(ExternalReference::re_check_stack_guard_state().address(), | 422 Add(ExternalReference::re_check_stack_guard_state().address(), |
431 UNCLASSIFIED, | 423 UNCLASSIFIED, |
432 23, | 424 21, |
433 "RegExpMacroAssembler*::CheckStackGuardState()"); | 425 "RegExpMacroAssembler*::CheckStackGuardState()"); |
434 Add(ExternalReference::re_grow_stack().address(), | 426 Add(ExternalReference::re_grow_stack().address(), |
435 UNCLASSIFIED, | 427 UNCLASSIFIED, |
436 24, | 428 22, |
437 "NativeRegExpMacroAssembler::GrowStack()"); | 429 "NativeRegExpMacroAssembler::GrowStack()"); |
438 Add(ExternalReference::re_word_character_map().address(), | 430 Add(ExternalReference::re_word_character_map().address(), |
439 UNCLASSIFIED, | 431 UNCLASSIFIED, |
440 25, | 432 23, |
441 "NativeRegExpMacroAssembler::word_character_map"); | 433 "NativeRegExpMacroAssembler::word_character_map"); |
442 #endif // V8_INTERPRETED_REGEXP | 434 #endif // V8_INTERPRETED_REGEXP |
443 // Keyed lookup cache. | 435 // Keyed lookup cache. |
444 Add(ExternalReference::keyed_lookup_cache_keys().address(), | 436 Add(ExternalReference::keyed_lookup_cache_keys().address(), |
445 UNCLASSIFIED, | 437 UNCLASSIFIED, |
446 26, | 438 24, |
447 "KeyedLookupCache::keys()"); | 439 "KeyedLookupCache::keys()"); |
448 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), | 440 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), |
449 UNCLASSIFIED, | 441 UNCLASSIFIED, |
450 27, | 442 25, |
451 "KeyedLookupCache::field_offsets()"); | 443 "KeyedLookupCache::field_offsets()"); |
452 Add(ExternalReference::transcendental_cache_array_address().address(), | 444 Add(ExternalReference::transcendental_cache_array_address().address(), |
453 UNCLASSIFIED, | 445 UNCLASSIFIED, |
454 28, | 446 26, |
455 "TranscendentalCache::caches()"); | 447 "TranscendentalCache::caches()"); |
456 } | 448 } |
457 | 449 |
458 | 450 |
459 ExternalReferenceEncoder::ExternalReferenceEncoder() | 451 ExternalReferenceEncoder::ExternalReferenceEncoder() |
460 : encodings_(Match) { | 452 : encodings_(Match) { |
461 ExternalReferenceTable* external_references = | 453 ExternalReferenceTable* external_references = |
462 ExternalReferenceTable::instance(); | 454 ExternalReferenceTable::instance(); |
463 for (int i = 0; i < external_references->size(); ++i) { | 455 for (int i = 0; i < external_references->size(); ++i) { |
464 Put(external_references->address(i), i); | 456 Put(external_references->address(i), i); |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1366 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
1375 } | 1367 } |
1376 } | 1368 } |
1377 int allocation_address = fullness_[space]; | 1369 int allocation_address = fullness_[space]; |
1378 fullness_[space] = allocation_address + size; | 1370 fullness_[space] = allocation_address + size; |
1379 return allocation_address; | 1371 return allocation_address; |
1380 } | 1372 } |
1381 | 1373 |
1382 | 1374 |
1383 } } // namespace v8::internal | 1375 } } // namespace v8::internal |
OLD | NEW |