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