| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 "OffsetsVector::static_offsets_vector"); | 377 "OffsetsVector::static_offsets_vector"); |
| 378 #endif // V8_INTERPRETED_REGEXP | 378 #endif // V8_INTERPRETED_REGEXP |
| 379 Add(ExternalReference::new_space_start().address(), | 379 Add(ExternalReference::new_space_start().address(), |
| 380 UNCLASSIFIED, | 380 UNCLASSIFIED, |
| 381 10, | 381 10, |
| 382 "Heap::NewSpaceStart()"); | 382 "Heap::NewSpaceStart()"); |
| 383 Add(ExternalReference::new_space_mask().address(), | 383 Add(ExternalReference::new_space_mask().address(), |
| 384 UNCLASSIFIED, | 384 UNCLASSIFIED, |
| 385 11, | 385 11, |
| 386 "Heap::NewSpaceMask()"); | 386 "Heap::NewSpaceMask()"); |
| 387 Add(ExternalReference::new_space_mark_bits().address(), |
| 388 UNCLASSIFIED, |
| 389 12, |
| 390 "Marking::new_space_bitmap()"); |
| 387 Add(ExternalReference::heap_always_allocate_scope_depth().address(), | 391 Add(ExternalReference::heap_always_allocate_scope_depth().address(), |
| 388 UNCLASSIFIED, | 392 UNCLASSIFIED, |
| 389 12, | 393 13, |
| 390 "Heap::always_allocate_scope_depth()"); | 394 "Heap::always_allocate_scope_depth()"); |
| 391 Add(ExternalReference::new_space_allocation_limit_address().address(), | 395 Add(ExternalReference::new_space_allocation_limit_address().address(), |
| 392 UNCLASSIFIED, | 396 UNCLASSIFIED, |
| 393 13, | 397 14, |
| 394 "Heap::NewSpaceAllocationLimitAddress()"); | 398 "Heap::NewSpaceAllocationLimitAddress()"); |
| 395 Add(ExternalReference::new_space_allocation_top_address().address(), | 399 Add(ExternalReference::new_space_allocation_top_address().address(), |
| 396 UNCLASSIFIED, | 400 UNCLASSIFIED, |
| 397 14, | 401 15, |
| 398 "Heap::NewSpaceAllocationTopAddress()"); | 402 "Heap::NewSpaceAllocationTopAddress()"); |
| 399 #ifdef ENABLE_DEBUGGER_SUPPORT | 403 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 400 Add(ExternalReference::debug_break().address(), | 404 Add(ExternalReference::debug_break().address(), |
| 401 UNCLASSIFIED, | 405 UNCLASSIFIED, |
| 402 15, | 406 16, |
| 403 "Debug::Break()"); | 407 "Debug::Break()"); |
| 404 Add(ExternalReference::debug_step_in_fp_address().address(), | 408 Add(ExternalReference::debug_step_in_fp_address().address(), |
| 405 UNCLASSIFIED, | 409 UNCLASSIFIED, |
| 406 16, | 410 17, |
| 407 "Debug::step_in_fp_addr()"); | 411 "Debug::step_in_fp_addr()"); |
| 408 #endif | 412 #endif |
| 409 Add(ExternalReference::double_fp_operation(Token::ADD).address(), | 413 Add(ExternalReference::double_fp_operation(Token::ADD).address(), |
| 410 UNCLASSIFIED, | 414 UNCLASSIFIED, |
| 411 17, | 415 18, |
| 412 "add_two_doubles"); | 416 "add_two_doubles"); |
| 413 Add(ExternalReference::double_fp_operation(Token::SUB).address(), | 417 Add(ExternalReference::double_fp_operation(Token::SUB).address(), |
| 414 UNCLASSIFIED, | 418 UNCLASSIFIED, |
| 415 18, | 419 19, |
| 416 "sub_two_doubles"); | 420 "sub_two_doubles"); |
| 417 Add(ExternalReference::double_fp_operation(Token::MUL).address(), | 421 Add(ExternalReference::double_fp_operation(Token::MUL).address(), |
| 418 UNCLASSIFIED, | 422 UNCLASSIFIED, |
| 419 19, | 423 20, |
| 420 "mul_two_doubles"); | 424 "mul_two_doubles"); |
| 421 Add(ExternalReference::double_fp_operation(Token::DIV).address(), | 425 Add(ExternalReference::double_fp_operation(Token::DIV).address(), |
| 422 UNCLASSIFIED, | 426 UNCLASSIFIED, |
| 423 20, | 427 21, |
| 424 "div_two_doubles"); | 428 "div_two_doubles"); |
| 425 Add(ExternalReference::double_fp_operation(Token::MOD).address(), | 429 Add(ExternalReference::double_fp_operation(Token::MOD).address(), |
| 426 UNCLASSIFIED, | 430 UNCLASSIFIED, |
| 427 21, | 431 22, |
| 428 "mod_two_doubles"); | 432 "mod_two_doubles"); |
| 429 Add(ExternalReference::compare_doubles().address(), | 433 Add(ExternalReference::compare_doubles().address(), |
| 430 UNCLASSIFIED, | 434 UNCLASSIFIED, |
| 431 22, | 435 23, |
| 432 "compare_doubles"); | 436 "compare_doubles"); |
| 433 #ifndef V8_INTERPRETED_REGEXP | 437 #ifndef V8_INTERPRETED_REGEXP |
| 434 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), | 438 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), |
| 435 UNCLASSIFIED, | 439 UNCLASSIFIED, |
| 436 23, | 440 24, |
| 437 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 441 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
| 438 Add(ExternalReference::re_check_stack_guard_state().address(), | 442 Add(ExternalReference::re_check_stack_guard_state().address(), |
| 439 UNCLASSIFIED, | 443 UNCLASSIFIED, |
| 440 24, | 444 25, |
| 441 "RegExpMacroAssembler*::CheckStackGuardState()"); | 445 "RegExpMacroAssembler*::CheckStackGuardState()"); |
| 442 Add(ExternalReference::re_grow_stack().address(), | 446 Add(ExternalReference::re_grow_stack().address(), |
| 443 UNCLASSIFIED, | 447 UNCLASSIFIED, |
| 444 25, | 448 26, |
| 445 "NativeRegExpMacroAssembler::GrowStack()"); | 449 "NativeRegExpMacroAssembler::GrowStack()"); |
| 446 Add(ExternalReference::re_word_character_map().address(), | 450 Add(ExternalReference::re_word_character_map().address(), |
| 447 UNCLASSIFIED, | 451 UNCLASSIFIED, |
| 448 26, | 452 27, |
| 449 "NativeRegExpMacroAssembler::word_character_map"); | 453 "NativeRegExpMacroAssembler::word_character_map"); |
| 450 #endif // V8_INTERPRETED_REGEXP | 454 #endif // V8_INTERPRETED_REGEXP |
| 451 // Keyed lookup cache. | 455 // Keyed lookup cache. |
| 452 Add(ExternalReference::keyed_lookup_cache_keys().address(), | 456 Add(ExternalReference::keyed_lookup_cache_keys().address(), |
| 453 UNCLASSIFIED, | 457 UNCLASSIFIED, |
| 454 27, | 458 28, |
| 455 "KeyedLookupCache::keys()"); | 459 "KeyedLookupCache::keys()"); |
| 456 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), | 460 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), |
| 457 UNCLASSIFIED, | 461 UNCLASSIFIED, |
| 458 28, | 462 29, |
| 459 "KeyedLookupCache::field_offsets()"); | 463 "KeyedLookupCache::field_offsets()"); |
| 460 Add(ExternalReference::transcendental_cache_array_address().address(), | 464 Add(ExternalReference::transcendental_cache_array_address().address(), |
| 461 UNCLASSIFIED, | 465 UNCLASSIFIED, |
| 462 29, | 466 30, |
| 463 "TranscendentalCache::caches()"); | 467 "TranscendentalCache::caches()"); |
| 464 Add(ExternalReference::handle_scope_next_address().address(), | 468 Add(ExternalReference::handle_scope_next_address().address(), |
| 465 UNCLASSIFIED, | 469 UNCLASSIFIED, |
| 466 30, | 470 31, |
| 467 "HandleScope::next"); | 471 "HandleScope::next"); |
| 468 Add(ExternalReference::handle_scope_limit_address().address(), | 472 Add(ExternalReference::handle_scope_limit_address().address(), |
| 469 UNCLASSIFIED, | 473 UNCLASSIFIED, |
| 470 31, | 474 32, |
| 471 "HandleScope::limit"); | 475 "HandleScope::limit"); |
| 472 Add(ExternalReference::handle_scope_level_address().address(), | 476 Add(ExternalReference::handle_scope_level_address().address(), |
| 473 UNCLASSIFIED, | 477 UNCLASSIFIED, |
| 474 32, | 478 33, |
| 475 "HandleScope::level"); | 479 "HandleScope::level"); |
| 476 Add(ExternalReference::new_deoptimizer_function().address(), | 480 Add(ExternalReference::new_deoptimizer_function().address(), |
| 477 UNCLASSIFIED, | 481 UNCLASSIFIED, |
| 478 33, | 482 34, |
| 479 "Deoptimizer::New()"); | 483 "Deoptimizer::New()"); |
| 480 Add(ExternalReference::compute_output_frames_function().address(), | 484 Add(ExternalReference::compute_output_frames_function().address(), |
| 481 UNCLASSIFIED, | 485 UNCLASSIFIED, |
| 482 34, | 486 35, |
| 483 "Deoptimizer::ComputeOutputFrames()"); | 487 "Deoptimizer::ComputeOutputFrames()"); |
| 484 Add(ExternalReference::address_of_min_int().address(), | 488 Add(ExternalReference::address_of_min_int().address(), |
| 485 UNCLASSIFIED, | 489 UNCLASSIFIED, |
| 486 35, | 490 36, |
| 487 "LDoubleConstant::min_int"); | 491 "LDoubleConstant::min_int"); |
| 488 Add(ExternalReference::address_of_one_half().address(), | 492 Add(ExternalReference::address_of_one_half().address(), |
| 489 UNCLASSIFIED, | 493 UNCLASSIFIED, |
| 490 36, | 494 37, |
| 491 "LDoubleConstant::one_half"); | 495 "LDoubleConstant::one_half"); |
| 492 Add(ExternalReference::address_of_minus_zero().address(), | 496 Add(ExternalReference::address_of_minus_zero().address(), |
| 493 UNCLASSIFIED, | 497 UNCLASSIFIED, |
| 494 37, | 498 38, |
| 495 "LDoubleConstant::minus_zero"); | 499 "LDoubleConstant::minus_zero"); |
| 496 Add(ExternalReference::address_of_negative_infinity().address(), | 500 Add(ExternalReference::address_of_negative_infinity().address(), |
| 497 UNCLASSIFIED, | 501 UNCLASSIFIED, |
| 498 38, | 502 39, |
| 499 "LDoubleConstant::negative_infinity"); | 503 "LDoubleConstant::negative_infinity"); |
| 500 Add(ExternalReference::power_double_double_function().address(), | 504 Add(ExternalReference::power_double_double_function().address(), |
| 501 UNCLASSIFIED, | 505 UNCLASSIFIED, |
| 502 39, | 506 40, |
| 503 "power_double_double_function"); | 507 "power_double_double_function"); |
| 504 Add(ExternalReference::power_double_int_function().address(), | 508 Add(ExternalReference::power_double_int_function().address(), |
| 505 UNCLASSIFIED, | 509 UNCLASSIFIED, |
| 506 40, | 510 41, |
| 507 "power_double_int_function"); | 511 "power_double_int_function"); |
| 508 Add(ExternalReference::store_buffer_top().address(), | 512 Add(ExternalReference::store_buffer_top().address(), |
| 509 UNCLASSIFIED, | 513 UNCLASSIFIED, |
| 510 41, | 514 42, |
| 511 "store_buffer_top"); | 515 "store_buffer_top"); |
| 512 Add(ExternalReference::arguments_marker_location().address(), | 516 Add(ExternalReference::arguments_marker_location().address(), |
| 513 UNCLASSIFIED, | 517 UNCLASSIFIED, |
| 514 42, | 518 43, |
| 515 "Factory::arguments_marker().location()"); | 519 "Factory::arguments_marker().location()"); |
| 516 } | 520 } |
| 517 | 521 |
| 518 | 522 |
| 519 ExternalReferenceEncoder::ExternalReferenceEncoder() | 523 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 520 : encodings_(Match) { | 524 : encodings_(Match) { |
| 521 ExternalReferenceTable* external_references = | 525 ExternalReferenceTable* external_references = |
| 522 ExternalReferenceTable::instance(); | 526 ExternalReferenceTable::instance(); |
| 523 for (int i = 0; i < external_references->size(); ++i) { | 527 for (int i = 0; i < external_references->size(); ++i) { |
| 524 Put(external_references->address(i), i); | 528 Put(external_references->address(i), i); |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1550 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1547 } | 1551 } |
| 1548 } | 1552 } |
| 1549 int allocation_address = fullness_[space]; | 1553 int allocation_address = fullness_[space]; |
| 1550 fullness_[space] = allocation_address + size; | 1554 fullness_[space] = allocation_address + size; |
| 1551 return allocation_address; | 1555 return allocation_address; |
| 1552 } | 1556 } |
| 1553 | 1557 |
| 1554 | 1558 |
| 1555 } } // namespace v8::internal | 1559 } } // namespace v8::internal |
| OLD | NEW |