| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 5, | 352 5, |
| 353 "StackGuard::address_of_real_jslimit()"); | 353 "StackGuard::address_of_real_jslimit()"); |
| 354 Add(ExternalReference::address_of_regexp_stack_limit().address(), | 354 Add(ExternalReference::address_of_regexp_stack_limit().address(), |
| 355 UNCLASSIFIED, | 355 UNCLASSIFIED, |
| 356 6, | 356 6, |
| 357 "RegExpStack::limit_address()"); | 357 "RegExpStack::limit_address()"); |
| 358 Add(ExternalReference::new_space_start().address(), | 358 Add(ExternalReference::new_space_start().address(), |
| 359 UNCLASSIFIED, | 359 UNCLASSIFIED, |
| 360 7, | 360 7, |
| 361 "Heap::NewSpaceStart()"); | 361 "Heap::NewSpaceStart()"); |
| 362 Add(ExternalReference::new_space_mask().address(), |
| 363 UNCLASSIFIED, |
| 364 8, |
| 365 "Heap::NewSpaceMask()"); |
| 362 Add(ExternalReference::heap_always_allocate_scope_depth().address(), | 366 Add(ExternalReference::heap_always_allocate_scope_depth().address(), |
| 363 UNCLASSIFIED, | 367 UNCLASSIFIED, |
| 364 8, | 368 9, |
| 365 "Heap::always_allocate_scope_depth()"); | 369 "Heap::always_allocate_scope_depth()"); |
| 366 Add(ExternalReference::new_space_allocation_limit_address().address(), | 370 Add(ExternalReference::new_space_allocation_limit_address().address(), |
| 367 UNCLASSIFIED, | 371 UNCLASSIFIED, |
| 368 9, | 372 10, |
| 369 "Heap::NewSpaceAllocationLimitAddress()"); | 373 "Heap::NewSpaceAllocationLimitAddress()"); |
| 370 Add(ExternalReference::new_space_allocation_top_address().address(), | 374 Add(ExternalReference::new_space_allocation_top_address().address(), |
| 371 UNCLASSIFIED, | 375 UNCLASSIFIED, |
| 372 10, | 376 11, |
| 373 "Heap::NewSpaceAllocationTopAddress()"); | 377 "Heap::NewSpaceAllocationTopAddress()"); |
| 374 #ifdef ENABLE_DEBUGGER_SUPPORT | 378 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 375 Add(ExternalReference::debug_break().address(), | 379 Add(ExternalReference::debug_break().address(), |
| 376 UNCLASSIFIED, | 380 UNCLASSIFIED, |
| 377 11, | 381 12, |
| 378 "Debug::Break()"); | 382 "Debug::Break()"); |
| 379 Add(ExternalReference::debug_step_in_fp_address().address(), | 383 Add(ExternalReference::debug_step_in_fp_address().address(), |
| 380 UNCLASSIFIED, | 384 UNCLASSIFIED, |
| 381 12, | 385 13, |
| 382 "Debug::step_in_fp_addr()"); | 386 "Debug::step_in_fp_addr()"); |
| 383 #endif | 387 #endif |
| 384 Add(ExternalReference::double_fp_operation(Token::ADD).address(), | 388 Add(ExternalReference::double_fp_operation(Token::ADD).address(), |
| 385 UNCLASSIFIED, | 389 UNCLASSIFIED, |
| 386 13, | 390 14, |
| 387 "add_two_doubles"); | 391 "add_two_doubles"); |
| 388 Add(ExternalReference::double_fp_operation(Token::SUB).address(), | 392 Add(ExternalReference::double_fp_operation(Token::SUB).address(), |
| 389 UNCLASSIFIED, | 393 UNCLASSIFIED, |
| 390 14, | 394 15, |
| 391 "sub_two_doubles"); | 395 "sub_two_doubles"); |
| 392 Add(ExternalReference::double_fp_operation(Token::MUL).address(), | 396 Add(ExternalReference::double_fp_operation(Token::MUL).address(), |
| 393 UNCLASSIFIED, | 397 UNCLASSIFIED, |
| 394 15, | 398 16, |
| 395 "mul_two_doubles"); | 399 "mul_two_doubles"); |
| 396 Add(ExternalReference::double_fp_operation(Token::DIV).address(), | 400 Add(ExternalReference::double_fp_operation(Token::DIV).address(), |
| 397 UNCLASSIFIED, | 401 UNCLASSIFIED, |
| 398 16, | 402 17, |
| 399 "div_two_doubles"); | 403 "div_two_doubles"); |
| 400 Add(ExternalReference::double_fp_operation(Token::MOD).address(), | 404 Add(ExternalReference::double_fp_operation(Token::MOD).address(), |
| 401 UNCLASSIFIED, | 405 UNCLASSIFIED, |
| 402 17, | 406 18, |
| 403 "mod_two_doubles"); | 407 "mod_two_doubles"); |
| 404 Add(ExternalReference::compare_doubles().address(), | 408 Add(ExternalReference::compare_doubles().address(), |
| 405 UNCLASSIFIED, | 409 UNCLASSIFIED, |
| 406 18, | 410 19, |
| 407 "compare_doubles"); | 411 "compare_doubles"); |
| 408 #ifdef V8_NATIVE_REGEXP | 412 #ifdef V8_NATIVE_REGEXP |
| 409 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), | 413 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), |
| 410 UNCLASSIFIED, | 414 UNCLASSIFIED, |
| 411 19, | 415 20, |
| 412 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 416 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
| 413 Add(ExternalReference::re_check_stack_guard_state().address(), | 417 Add(ExternalReference::re_check_stack_guard_state().address(), |
| 414 UNCLASSIFIED, | 418 UNCLASSIFIED, |
| 415 20, | 419 21, |
| 416 "RegExpMacroAssembler*::CheckStackGuardState()"); | 420 "RegExpMacroAssembler*::CheckStackGuardState()"); |
| 417 Add(ExternalReference::re_grow_stack().address(), | 421 Add(ExternalReference::re_grow_stack().address(), |
| 418 UNCLASSIFIED, | 422 UNCLASSIFIED, |
| 419 21, | 423 22, |
| 420 "NativeRegExpMacroAssembler::GrowStack()"); | 424 "NativeRegExpMacroAssembler::GrowStack()"); |
| 421 Add(ExternalReference::re_word_character_map().address(), | 425 Add(ExternalReference::re_word_character_map().address(), |
| 422 UNCLASSIFIED, | 426 UNCLASSIFIED, |
| 423 22, | 427 23, |
| 424 "NativeRegExpMacroAssembler::word_character_map"); | 428 "NativeRegExpMacroAssembler::word_character_map"); |
| 425 #endif | 429 #endif |
| 426 // Keyed lookup cache. | 430 // Keyed lookup cache. |
| 427 Add(ExternalReference::keyed_lookup_cache_keys().address(), | 431 Add(ExternalReference::keyed_lookup_cache_keys().address(), |
| 428 UNCLASSIFIED, | 432 UNCLASSIFIED, |
| 429 23, | 433 24, |
| 430 "KeyedLookupCache::keys()"); | 434 "KeyedLookupCache::keys()"); |
| 431 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), | 435 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), |
| 432 UNCLASSIFIED, | 436 UNCLASSIFIED, |
| 433 24, | 437 25, |
| 434 "KeyedLookupCache::field_offsets()"); | 438 "KeyedLookupCache::field_offsets()"); |
| 435 } | 439 } |
| 436 | 440 |
| 437 | 441 |
| 438 ExternalReferenceEncoder::ExternalReferenceEncoder() | 442 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 439 : encodings_(Match) { | 443 : encodings_(Match) { |
| 440 ExternalReferenceTable* external_references = | 444 ExternalReferenceTable* external_references = |
| 441 ExternalReferenceTable::instance(); | 445 ExternalReferenceTable::instance(); |
| 442 for (int i = 0; i < external_references->size(); ++i) { | 446 for (int i = 0; i < external_references->size(); ++i) { |
| 443 Put(external_references->address(i), i); | 447 Put(external_references->address(i), i); |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1354 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1351 } | 1355 } |
| 1352 } | 1356 } |
| 1353 int allocation_address = fullness_[space]; | 1357 int allocation_address = fullness_[space]; |
| 1354 fullness_[space] = allocation_address + size; | 1358 fullness_[space] = allocation_address + size; |
| 1355 return allocation_address; | 1359 return allocation_address; |
| 1356 } | 1360 } |
| 1357 | 1361 |
| 1358 | 1362 |
| 1359 } } // namespace v8::internal | 1363 } } // namespace v8::internal |
| OLD | NEW |