| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 4, | 357 4, |
| 358 "StackGuard::address_of_jslimit()"); | 358 "StackGuard::address_of_jslimit()"); |
| 359 Add(ExternalReference::address_of_real_stack_limit().address(), | 359 Add(ExternalReference::address_of_real_stack_limit().address(), |
| 360 UNCLASSIFIED, | 360 UNCLASSIFIED, |
| 361 5, | 361 5, |
| 362 "StackGuard::address_of_real_jslimit()"); | 362 "StackGuard::address_of_real_jslimit()"); |
| 363 Add(ExternalReference::address_of_regexp_stack_limit().address(), | 363 Add(ExternalReference::address_of_regexp_stack_limit().address(), |
| 364 UNCLASSIFIED, | 364 UNCLASSIFIED, |
| 365 6, | 365 6, |
| 366 "RegExpStack::limit_address()"); | 366 "RegExpStack::limit_address()"); |
| 367 Add(ExternalReference::address_of_regexp_stack_memory_address().address(), |
| 368 UNCLASSIFIED, |
| 369 7, |
| 370 "RegExpStack::memory_address()"); |
| 371 Add(ExternalReference::address_of_regexp_stack_memory_size().address(), |
| 372 UNCLASSIFIED, |
| 373 8, |
| 374 "RegExpStack::memory_size()"); |
| 375 Add(ExternalReference::address_of_static_offsets_vector().address(), |
| 376 UNCLASSIFIED, |
| 377 9, |
| 378 "OffsetsVector::static_offsets_vector"); |
| 367 Add(ExternalReference::new_space_start().address(), | 379 Add(ExternalReference::new_space_start().address(), |
| 368 UNCLASSIFIED, | 380 UNCLASSIFIED, |
| 369 7, | 381 10, |
| 370 "Heap::NewSpaceStart()"); | 382 "Heap::NewSpaceStart()"); |
| 371 Add(ExternalReference::new_space_mask().address(), | 383 Add(ExternalReference::new_space_mask().address(), |
| 372 UNCLASSIFIED, | 384 UNCLASSIFIED, |
| 373 8, | 385 11, |
| 374 "Heap::NewSpaceMask()"); | 386 "Heap::NewSpaceMask()"); |
| 375 Add(ExternalReference::heap_always_allocate_scope_depth().address(), | 387 Add(ExternalReference::heap_always_allocate_scope_depth().address(), |
| 376 UNCLASSIFIED, | 388 UNCLASSIFIED, |
| 377 9, | 389 12, |
| 378 "Heap::always_allocate_scope_depth()"); | 390 "Heap::always_allocate_scope_depth()"); |
| 379 Add(ExternalReference::new_space_allocation_limit_address().address(), | 391 Add(ExternalReference::new_space_allocation_limit_address().address(), |
| 380 UNCLASSIFIED, | 392 UNCLASSIFIED, |
| 381 10, | 393 13, |
| 382 "Heap::NewSpaceAllocationLimitAddress()"); | 394 "Heap::NewSpaceAllocationLimitAddress()"); |
| 383 Add(ExternalReference::new_space_allocation_top_address().address(), | 395 Add(ExternalReference::new_space_allocation_top_address().address(), |
| 384 UNCLASSIFIED, | 396 UNCLASSIFIED, |
| 385 11, | 397 14, |
| 386 "Heap::NewSpaceAllocationTopAddress()"); | 398 "Heap::NewSpaceAllocationTopAddress()"); |
| 387 #ifdef ENABLE_DEBUGGER_SUPPORT | 399 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 388 Add(ExternalReference::debug_break().address(), | 400 Add(ExternalReference::debug_break().address(), |
| 389 UNCLASSIFIED, | 401 UNCLASSIFIED, |
| 390 12, | 402 15, |
| 391 "Debug::Break()"); | 403 "Debug::Break()"); |
| 392 Add(ExternalReference::debug_step_in_fp_address().address(), | 404 Add(ExternalReference::debug_step_in_fp_address().address(), |
| 393 UNCLASSIFIED, | 405 UNCLASSIFIED, |
| 394 13, | 406 16, |
| 395 "Debug::step_in_fp_addr()"); | 407 "Debug::step_in_fp_addr()"); |
| 396 #endif | 408 #endif |
| 397 Add(ExternalReference::double_fp_operation(Token::ADD).address(), | 409 Add(ExternalReference::double_fp_operation(Token::ADD).address(), |
| 398 UNCLASSIFIED, | 410 UNCLASSIFIED, |
| 399 14, | 411 17, |
| 400 "add_two_doubles"); | 412 "add_two_doubles"); |
| 401 Add(ExternalReference::double_fp_operation(Token::SUB).address(), | 413 Add(ExternalReference::double_fp_operation(Token::SUB).address(), |
| 402 UNCLASSIFIED, | 414 UNCLASSIFIED, |
| 403 15, | 415 18, |
| 404 "sub_two_doubles"); | 416 "sub_two_doubles"); |
| 405 Add(ExternalReference::double_fp_operation(Token::MUL).address(), | 417 Add(ExternalReference::double_fp_operation(Token::MUL).address(), |
| 406 UNCLASSIFIED, | 418 UNCLASSIFIED, |
| 407 16, | 419 19, |
| 408 "mul_two_doubles"); | 420 "mul_two_doubles"); |
| 409 Add(ExternalReference::double_fp_operation(Token::DIV).address(), | 421 Add(ExternalReference::double_fp_operation(Token::DIV).address(), |
| 410 UNCLASSIFIED, | 422 UNCLASSIFIED, |
| 411 17, | 423 20, |
| 412 "div_two_doubles"); | 424 "div_two_doubles"); |
| 413 Add(ExternalReference::double_fp_operation(Token::MOD).address(), | 425 Add(ExternalReference::double_fp_operation(Token::MOD).address(), |
| 414 UNCLASSIFIED, | 426 UNCLASSIFIED, |
| 415 18, | 427 21, |
| 416 "mod_two_doubles"); | 428 "mod_two_doubles"); |
| 417 Add(ExternalReference::compare_doubles().address(), | 429 Add(ExternalReference::compare_doubles().address(), |
| 418 UNCLASSIFIED, | 430 UNCLASSIFIED, |
| 419 19, | 431 22, |
| 420 "compare_doubles"); | 432 "compare_doubles"); |
| 421 #ifndef V8_INTERPRETED_REGEXP | 433 #ifndef V8_INTERPRETED_REGEXP |
| 422 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), | 434 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), |
| 423 UNCLASSIFIED, | 435 UNCLASSIFIED, |
| 424 20, | 436 23, |
| 425 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 437 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
| 426 Add(ExternalReference::re_check_stack_guard_state().address(), | 438 Add(ExternalReference::re_check_stack_guard_state().address(), |
| 427 UNCLASSIFIED, | 439 UNCLASSIFIED, |
| 428 21, | 440 24, |
| 429 "RegExpMacroAssembler*::CheckStackGuardState()"); | 441 "RegExpMacroAssembler*::CheckStackGuardState()"); |
| 430 Add(ExternalReference::re_grow_stack().address(), | 442 Add(ExternalReference::re_grow_stack().address(), |
| 431 UNCLASSIFIED, | 443 UNCLASSIFIED, |
| 432 22, | 444 25, |
| 433 "NativeRegExpMacroAssembler::GrowStack()"); | 445 "NativeRegExpMacroAssembler::GrowStack()"); |
| 434 Add(ExternalReference::re_word_character_map().address(), | 446 Add(ExternalReference::re_word_character_map().address(), |
| 435 UNCLASSIFIED, | 447 UNCLASSIFIED, |
| 436 23, | 448 26, |
| 437 "NativeRegExpMacroAssembler::word_character_map"); | 449 "NativeRegExpMacroAssembler::word_character_map"); |
| 438 #endif // V8_INTERPRETED_REGEXP | 450 #endif // V8_INTERPRETED_REGEXP |
| 439 // Keyed lookup cache. | 451 // Keyed lookup cache. |
| 440 Add(ExternalReference::keyed_lookup_cache_keys().address(), | 452 Add(ExternalReference::keyed_lookup_cache_keys().address(), |
| 441 UNCLASSIFIED, | 453 UNCLASSIFIED, |
| 442 24, | 454 27, |
| 443 "KeyedLookupCache::keys()"); | 455 "KeyedLookupCache::keys()"); |
| 444 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), | 456 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), |
| 445 UNCLASSIFIED, | 457 UNCLASSIFIED, |
| 446 25, | 458 28, |
| 447 "KeyedLookupCache::field_offsets()"); | 459 "KeyedLookupCache::field_offsets()"); |
| 448 Add(ExternalReference::transcendental_cache_array_address().address(), | 460 Add(ExternalReference::transcendental_cache_array_address().address(), |
| 449 UNCLASSIFIED, | 461 UNCLASSIFIED, |
| 450 26, | 462 29, |
| 451 "TranscendentalCache::caches()"); | 463 "TranscendentalCache::caches()"); |
| 452 } | 464 } |
| 453 | 465 |
| 454 | 466 |
| 455 ExternalReferenceEncoder::ExternalReferenceEncoder() | 467 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 456 : encodings_(Match) { | 468 : encodings_(Match) { |
| 457 ExternalReferenceTable* external_references = | 469 ExternalReferenceTable* external_references = |
| 458 ExternalReferenceTable::instance(); | 470 ExternalReferenceTable::instance(); |
| 459 for (int i = 0; i < external_references->size(); ++i) { | 471 for (int i = 0; i < external_references->size(); ++i) { |
| 460 Put(external_references->address(i), i); | 472 Put(external_references->address(i), i); |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1430 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1442 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1431 } | 1443 } |
| 1432 } | 1444 } |
| 1433 int allocation_address = fullness_[space]; | 1445 int allocation_address = fullness_[space]; |
| 1434 fullness_[space] = allocation_address + size; | 1446 fullness_[space] = allocation_address + size; |
| 1435 return allocation_address; | 1447 return allocation_address; |
| 1436 } | 1448 } |
| 1437 | 1449 |
| 1438 | 1450 |
| 1439 } } // namespace v8::internal | 1451 } } // namespace v8::internal |
| OLD | NEW |