Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: src/serialize.cc

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.h ('k') | src/spaces.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 "OffsetsVector::static_offsets_vector"); 379 "OffsetsVector::static_offsets_vector");
380 #endif // V8_INTERPRETED_REGEXP 380 #endif // V8_INTERPRETED_REGEXP
381 Add(ExternalReference::new_space_start().address(), 381 Add(ExternalReference::new_space_start().address(),
382 UNCLASSIFIED, 382 UNCLASSIFIED,
383 10, 383 10,
384 "Heap::NewSpaceStart()"); 384 "Heap::NewSpaceStart()");
385 Add(ExternalReference::new_space_mask().address(), 385 Add(ExternalReference::new_space_mask().address(),
386 UNCLASSIFIED, 386 UNCLASSIFIED,
387 11, 387 11,
388 "Heap::NewSpaceMask()"); 388 "Heap::NewSpaceMask()");
389 Add(ExternalReference::new_space_mark_bits().address(),
390 UNCLASSIFIED,
391 12,
392 "Marking::new_space_bitmap()");
389 Add(ExternalReference::heap_always_allocate_scope_depth().address(), 393 Add(ExternalReference::heap_always_allocate_scope_depth().address(),
390 UNCLASSIFIED, 394 UNCLASSIFIED,
391 12, 395 13,
392 "Heap::always_allocate_scope_depth()"); 396 "Heap::always_allocate_scope_depth()");
393 Add(ExternalReference::new_space_allocation_limit_address().address(), 397 Add(ExternalReference::new_space_allocation_limit_address().address(),
394 UNCLASSIFIED, 398 UNCLASSIFIED,
395 13, 399 14,
396 "Heap::NewSpaceAllocationLimitAddress()"); 400 "Heap::NewSpaceAllocationLimitAddress()");
397 Add(ExternalReference::new_space_allocation_top_address().address(), 401 Add(ExternalReference::new_space_allocation_top_address().address(),
398 UNCLASSIFIED, 402 UNCLASSIFIED,
399 14, 403 15,
400 "Heap::NewSpaceAllocationTopAddress()"); 404 "Heap::NewSpaceAllocationTopAddress()");
401 #ifdef ENABLE_DEBUGGER_SUPPORT 405 #ifdef ENABLE_DEBUGGER_SUPPORT
402 Add(ExternalReference::debug_break().address(), 406 Add(ExternalReference::debug_break().address(),
403 UNCLASSIFIED, 407 UNCLASSIFIED,
404 15, 408 16,
405 "Debug::Break()"); 409 "Debug::Break()");
406 Add(ExternalReference::debug_step_in_fp_address().address(), 410 Add(ExternalReference::debug_step_in_fp_address().address(),
407 UNCLASSIFIED, 411 UNCLASSIFIED,
408 16, 412 17,
409 "Debug::step_in_fp_addr()"); 413 "Debug::step_in_fp_addr()");
410 #endif 414 #endif
411 Add(ExternalReference::double_fp_operation(Token::ADD).address(), 415 Add(ExternalReference::double_fp_operation(Token::ADD).address(),
412 UNCLASSIFIED, 416 UNCLASSIFIED,
413 17, 417 18,
414 "add_two_doubles"); 418 "add_two_doubles");
415 Add(ExternalReference::double_fp_operation(Token::SUB).address(), 419 Add(ExternalReference::double_fp_operation(Token::SUB).address(),
416 UNCLASSIFIED, 420 UNCLASSIFIED,
417 18, 421 19,
418 "sub_two_doubles"); 422 "sub_two_doubles");
419 Add(ExternalReference::double_fp_operation(Token::MUL).address(), 423 Add(ExternalReference::double_fp_operation(Token::MUL).address(),
420 UNCLASSIFIED, 424 UNCLASSIFIED,
421 19, 425 20,
422 "mul_two_doubles"); 426 "mul_two_doubles");
423 Add(ExternalReference::double_fp_operation(Token::DIV).address(), 427 Add(ExternalReference::double_fp_operation(Token::DIV).address(),
424 UNCLASSIFIED, 428 UNCLASSIFIED,
425 20, 429 21,
426 "div_two_doubles"); 430 "div_two_doubles");
427 Add(ExternalReference::double_fp_operation(Token::MOD).address(), 431 Add(ExternalReference::double_fp_operation(Token::MOD).address(),
428 UNCLASSIFIED, 432 UNCLASSIFIED,
429 21, 433 22,
430 "mod_two_doubles"); 434 "mod_two_doubles");
431 Add(ExternalReference::compare_doubles().address(), 435 Add(ExternalReference::compare_doubles().address(),
432 UNCLASSIFIED, 436 UNCLASSIFIED,
433 22, 437 23,
434 "compare_doubles"); 438 "compare_doubles");
435 #ifndef V8_INTERPRETED_REGEXP 439 #ifndef V8_INTERPRETED_REGEXP
436 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), 440 Add(ExternalReference::re_case_insensitive_compare_uc16().address(),
437 UNCLASSIFIED, 441 UNCLASSIFIED,
438 23, 442 24,
439 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); 443 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()");
440 Add(ExternalReference::re_check_stack_guard_state().address(), 444 Add(ExternalReference::re_check_stack_guard_state().address(),
441 UNCLASSIFIED, 445 UNCLASSIFIED,
442 24, 446 25,
443 "RegExpMacroAssembler*::CheckStackGuardState()"); 447 "RegExpMacroAssembler*::CheckStackGuardState()");
444 Add(ExternalReference::re_grow_stack().address(), 448 Add(ExternalReference::re_grow_stack().address(),
445 UNCLASSIFIED, 449 UNCLASSIFIED,
446 25, 450 26,
447 "NativeRegExpMacroAssembler::GrowStack()"); 451 "NativeRegExpMacroAssembler::GrowStack()");
448 Add(ExternalReference::re_word_character_map().address(), 452 Add(ExternalReference::re_word_character_map().address(),
449 UNCLASSIFIED, 453 UNCLASSIFIED,
450 26, 454 27,
451 "NativeRegExpMacroAssembler::word_character_map"); 455 "NativeRegExpMacroAssembler::word_character_map");
452 #endif // V8_INTERPRETED_REGEXP 456 #endif // V8_INTERPRETED_REGEXP
453 // Keyed lookup cache. 457 // Keyed lookup cache.
454 Add(ExternalReference::keyed_lookup_cache_keys().address(), 458 Add(ExternalReference::keyed_lookup_cache_keys().address(),
455 UNCLASSIFIED, 459 UNCLASSIFIED,
456 27, 460 28,
457 "KeyedLookupCache::keys()"); 461 "KeyedLookupCache::keys()");
458 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(), 462 Add(ExternalReference::keyed_lookup_cache_field_offsets().address(),
459 UNCLASSIFIED, 463 UNCLASSIFIED,
460 28, 464 29,
461 "KeyedLookupCache::field_offsets()"); 465 "KeyedLookupCache::field_offsets()");
462 Add(ExternalReference::transcendental_cache_array_address().address(), 466 Add(ExternalReference::transcendental_cache_array_address().address(),
463 UNCLASSIFIED, 467 UNCLASSIFIED,
464 29, 468 30,
465 "TranscendentalCache::caches()"); 469 "TranscendentalCache::caches()");
466 Add(ExternalReference::handle_scope_next_address().address(), 470 Add(ExternalReference::handle_scope_next_address().address(),
467 UNCLASSIFIED, 471 UNCLASSIFIED,
468 30, 472 31,
469 "HandleScope::next"); 473 "HandleScope::next");
470 Add(ExternalReference::handle_scope_limit_address().address(), 474 Add(ExternalReference::handle_scope_limit_address().address(),
471 UNCLASSIFIED, 475 UNCLASSIFIED,
472 31, 476 32,
473 "HandleScope::limit"); 477 "HandleScope::limit");
474 Add(ExternalReference::handle_scope_level_address().address(), 478 Add(ExternalReference::handle_scope_level_address().address(),
475 UNCLASSIFIED, 479 UNCLASSIFIED,
476 32, 480 33,
477 "HandleScope::level"); 481 "HandleScope::level");
478 Add(ExternalReference::new_deoptimizer_function().address(), 482 Add(ExternalReference::new_deoptimizer_function().address(),
479 UNCLASSIFIED, 483 UNCLASSIFIED,
480 33, 484 34,
481 "Deoptimizer::New()"); 485 "Deoptimizer::New()");
482 Add(ExternalReference::compute_output_frames_function().address(), 486 Add(ExternalReference::compute_output_frames_function().address(),
483 UNCLASSIFIED, 487 UNCLASSIFIED,
484 34, 488 35,
485 "Deoptimizer::ComputeOutputFrames()"); 489 "Deoptimizer::ComputeOutputFrames()");
486 Add(ExternalReference::address_of_min_int().address(), 490 Add(ExternalReference::address_of_min_int().address(),
487 UNCLASSIFIED, 491 UNCLASSIFIED,
488 35, 492 36,
489 "LDoubleConstant::min_int"); 493 "LDoubleConstant::min_int");
490 Add(ExternalReference::address_of_one_half().address(), 494 Add(ExternalReference::address_of_one_half().address(),
491 UNCLASSIFIED, 495 UNCLASSIFIED,
492 36, 496 37,
493 "LDoubleConstant::one_half"); 497 "LDoubleConstant::one_half");
494 Add(ExternalReference::isolate_address().address(), 498 Add(ExternalReference::isolate_address().address(),
495 UNCLASSIFIED, 499 UNCLASSIFIED,
496 37, 500 37,
497 "isolate"); 501 "isolate");
498 Add(ExternalReference::address_of_minus_zero().address(), 502 Add(ExternalReference::address_of_minus_zero().address(),
499 UNCLASSIFIED, 503 UNCLASSIFIED,
500 38, 504 38,
501 "LDoubleConstant::minus_zero"); 505 "LDoubleConstant::minus_zero");
502 Add(ExternalReference::address_of_negative_infinity().address(), 506 Add(ExternalReference::address_of_negative_infinity().address(),
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1587 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1584 } 1588 }
1585 } 1589 }
1586 int allocation_address = fullness_[space]; 1590 int allocation_address = fullness_[space];
1587 fullness_[space] = allocation_address + size; 1591 fullness_[space] = allocation_address + size;
1588 return allocation_address; 1592 return allocation_address;
1589 } 1593 }
1590 1594
1591 1595
1592 } } // namespace v8::internal 1596 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.h ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698