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 Add(ExternalReference::transcendental_cache_array_address().address(), | 439 Add(ExternalReference::transcendental_cache_array_address().address(), |
436 UNCLASSIFIED, | 440 UNCLASSIFIED, |
437 25, | 441 26, |
438 "TranscendentalCache::caches()"); | 442 "TranscendentalCache::caches()"); |
439 } | 443 } |
440 | 444 |
441 | 445 |
442 ExternalReferenceEncoder::ExternalReferenceEncoder() | 446 ExternalReferenceEncoder::ExternalReferenceEncoder() |
443 : encodings_(Match) { | 447 : encodings_(Match) { |
444 ExternalReferenceTable* external_references = | 448 ExternalReferenceTable* external_references = |
445 ExternalReferenceTable::instance(); | 449 ExternalReferenceTable::instance(); |
446 for (int i = 0; i < external_references->size(); ++i) { | 450 for (int i = 0; i < external_references->size(); ++i) { |
447 Put(external_references->address(i), i); | 451 Put(external_references->address(i), i); |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1360 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
1357 } | 1361 } |
1358 } | 1362 } |
1359 int allocation_address = fullness_[space]; | 1363 int allocation_address = fullness_[space]; |
1360 fullness_[space] = allocation_address + size; | 1364 fullness_[space] = allocation_address + size; |
1361 return allocation_address; | 1365 return allocation_address; |
1362 } | 1366 } |
1363 | 1367 |
1364 | 1368 |
1365 } } // namespace v8::internal | 1369 } } // namespace v8::internal |
OLD | NEW |