OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 20 matching lines...) Expand all Loading... |
31 // The original source code covered by the above license above has been | 31 // The original source code covered by the above license above has been |
32 // modified significantly by Google Inc. | 32 // modified significantly by Google Inc. |
33 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 33 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
34 | 34 |
35 #include "v8.h" | 35 #include "v8.h" |
36 | 36 |
37 #include "arguments.h" | 37 #include "arguments.h" |
38 #include "deoptimizer.h" | 38 #include "deoptimizer.h" |
39 #include "execution.h" | 39 #include "execution.h" |
40 #include "ic-inl.h" | 40 #include "ic-inl.h" |
| 41 #include "incremental-marking.h" |
41 #include "factory.h" | 42 #include "factory.h" |
42 #include "runtime.h" | 43 #include "runtime.h" |
43 #include "runtime-profiler.h" | 44 #include "runtime-profiler.h" |
44 #include "serialize.h" | 45 #include "serialize.h" |
45 #include "stub-cache.h" | 46 #include "stub-cache.h" |
46 #include "regexp-stack.h" | 47 #include "regexp-stack.h" |
47 #include "ast.h" | 48 #include "ast.h" |
48 #include "regexp-macro-assembler.h" | 49 #include "regexp-macro-assembler.h" |
49 #include "platform.h" | 50 #include "platform.h" |
50 #include "store-buffer.h" | 51 #include "store-buffer.h" |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 585 |
585 | 586 |
586 ExternalReference::ExternalReference(Top::AddressId id) | 587 ExternalReference::ExternalReference(Top::AddressId id) |
587 : address_(Top::get_address_from_id(id)) {} | 588 : address_(Top::get_address_from_id(id)) {} |
588 | 589 |
589 | 590 |
590 ExternalReference::ExternalReference(const SCTableReference& table_ref) | 591 ExternalReference::ExternalReference(const SCTableReference& table_ref) |
591 : address_(table_ref.address()) {} | 592 : address_(table_ref.address()) {} |
592 | 593 |
593 | 594 |
| 595 ExternalReference ExternalReference::incremental_marking_record_write_function()
{ |
| 596 return ExternalReference(Redirect(FUNCTION_ADDR(IncrementalMarking::RecordWrit
e))); |
| 597 } |
| 598 |
| 599 |
594 ExternalReference ExternalReference::perform_gc_function() { | 600 ExternalReference ExternalReference::perform_gc_function() { |
595 return ExternalReference(Redirect(FUNCTION_ADDR(Runtime::PerformGC))); | 601 return ExternalReference(Redirect(FUNCTION_ADDR(Runtime::PerformGC))); |
596 } | 602 } |
597 | 603 |
598 | 604 |
599 ExternalReference ExternalReference::fill_heap_number_with_random_function() { | 605 ExternalReference ExternalReference::fill_heap_number_with_random_function() { |
600 return | 606 return |
601 ExternalReference(Redirect(FUNCTION_ADDR(V8::FillHeapNumberWithRandom))); | 607 ExternalReference(Redirect(FUNCTION_ADDR(V8::FillHeapNumberWithRandom))); |
602 } | 608 } |
603 | 609 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 972 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
967 state_.written_position = state_.current_position; | 973 state_.written_position = state_.current_position; |
968 written = true; | 974 written = true; |
969 } | 975 } |
970 | 976 |
971 // Return whether something was written. | 977 // Return whether something was written. |
972 return written; | 978 return written; |
973 } | 979 } |
974 | 980 |
975 } } // namespace v8::internal | 981 } } // namespace v8::internal |
OLD | NEW |