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

Side by Side Diff: src/assembler.cc

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/assembler.h ('k') | src/ast.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 (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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 PrintF(out, "%p %s", pc_, RelocModeName(rmode_)); 812 PrintF(out, "%p %s", pc_, RelocModeName(rmode_));
813 if (IsComment(rmode_)) { 813 if (IsComment(rmode_)) {
814 PrintF(out, " (%s)", reinterpret_cast<char*>(data_)); 814 PrintF(out, " (%s)", reinterpret_cast<char*>(data_));
815 } else if (rmode_ == EMBEDDED_OBJECT) { 815 } else if (rmode_ == EMBEDDED_OBJECT) {
816 PrintF(out, " ("); 816 PrintF(out, " (");
817 target_object()->ShortPrint(out); 817 target_object()->ShortPrint(out);
818 PrintF(out, ")"); 818 PrintF(out, ")");
819 } else if (rmode_ == EXTERNAL_REFERENCE) { 819 } else if (rmode_ == EXTERNAL_REFERENCE) {
820 ExternalReferenceEncoder ref_encoder(isolate); 820 ExternalReferenceEncoder ref_encoder(isolate);
821 PrintF(out, " (%s) (%p)", 821 PrintF(out, " (%s) (%p)",
822 ref_encoder.NameOfAddress(*target_reference_address()), 822 ref_encoder.NameOfAddress(target_reference()),
823 *target_reference_address()); 823 target_reference());
824 } else if (IsCodeTarget(rmode_)) { 824 } else if (IsCodeTarget(rmode_)) {
825 Code* code = Code::GetCodeFromTargetAddress(target_address()); 825 Code* code = Code::GetCodeFromTargetAddress(target_address());
826 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), 826 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()),
827 target_address()); 827 target_address());
828 if (rmode_ == CODE_TARGET_WITH_ID) { 828 if (rmode_ == CODE_TARGET_WITH_ID) {
829 PrintF(" (id=%d)", static_cast<int>(data_)); 829 PrintF(out, " (id=%d)", static_cast<int>(data_));
830 } 830 }
831 } else if (IsPosition(rmode_)) { 831 } else if (IsPosition(rmode_)) {
832 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); 832 PrintF(out, " (%" V8_PTR_PREFIX "d)", data());
833 } else if (IsRuntimeEntry(rmode_) && 833 } else if (IsRuntimeEntry(rmode_) &&
834 isolate->deoptimizer_data() != NULL) { 834 isolate->deoptimizer_data() != NULL) {
835 // Depotimization bailouts are stored as runtime entries. 835 // Depotimization bailouts are stored as runtime entries.
836 int id = Deoptimizer::GetDeoptimizationId( 836 int id = Deoptimizer::GetDeoptimizationId(
837 isolate, target_address(), Deoptimizer::EAGER); 837 isolate, target_address(), Deoptimizer::EAGER);
838 if (id != Deoptimizer::kNotDeoptimizationEntry) { 838 if (id != Deoptimizer::kNotDeoptimizationEntry) {
839 PrintF(out, " (deoptimization bailout %d)", id); 839 PrintF(out, " (deoptimization bailout %d)", id);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(CPU::FlushICache))); 1046 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(CPU::FlushICache)));
1047 } 1047 }
1048 1048
1049 1049
1050 ExternalReference ExternalReference::perform_gc_function(Isolate* isolate) { 1050 ExternalReference ExternalReference::perform_gc_function(Isolate* isolate) {
1051 return 1051 return
1052 ExternalReference(Redirect(isolate, FUNCTION_ADDR(Runtime::PerformGC))); 1052 ExternalReference(Redirect(isolate, FUNCTION_ADDR(Runtime::PerformGC)));
1053 } 1053 }
1054 1054
1055 1055
1056 ExternalReference ExternalReference::fill_heap_number_with_random_function(
1057 Isolate* isolate) {
1058 return ExternalReference(Redirect(
1059 isolate,
1060 FUNCTION_ADDR(V8::FillHeapNumberWithRandom)));
1061 }
1062
1063
1064 ExternalReference ExternalReference::delete_handle_scope_extensions( 1056 ExternalReference ExternalReference::delete_handle_scope_extensions(
1065 Isolate* isolate) { 1057 Isolate* isolate) {
1066 return ExternalReference(Redirect( 1058 return ExternalReference(Redirect(
1067 isolate, 1059 isolate,
1068 FUNCTION_ADDR(HandleScope::DeleteExtensions))); 1060 FUNCTION_ADDR(HandleScope::DeleteExtensions)));
1069 } 1061 }
1070 1062
1071 1063
1072 ExternalReference ExternalReference::random_uint32_function( 1064 ExternalReference ExternalReference::random_uint32_function(
1073 Isolate* isolate) { 1065 Isolate* isolate) {
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan)); 1328 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan));
1337 } 1329 }
1338 1330
1339 1331
1340 ExternalReference ExternalReference::address_of_the_hole_nan() { 1332 ExternalReference ExternalReference::address_of_the_hole_nan() {
1341 return ExternalReference( 1333 return ExternalReference(
1342 reinterpret_cast<void*>(&double_constants.the_hole_nan)); 1334 reinterpret_cast<void*>(&double_constants.the_hole_nan));
1343 } 1335 }
1344 1336
1345 1337
1346 ExternalReference ExternalReference::record_object_allocation_function(
1347 Isolate* isolate) {
1348 return ExternalReference(
1349 Redirect(isolate,
1350 FUNCTION_ADDR(HeapProfiler::RecordObjectAllocationFromMasm)));
1351 }
1352
1353
1354 ExternalReference ExternalReference::address_of_uint32_bias() { 1338 ExternalReference ExternalReference::address_of_uint32_bias() {
1355 return ExternalReference( 1339 return ExternalReference(
1356 reinterpret_cast<void*>(&double_constants.uint32_bias)); 1340 reinterpret_cast<void*>(&double_constants.uint32_bias));
1357 } 1341 }
1358 1342
1359 1343
1360 #ifndef V8_INTERPRETED_REGEXP 1344 #ifndef V8_INTERPRETED_REGEXP
1361 1345
1362 ExternalReference ExternalReference::re_check_stack_guard_state( 1346 ExternalReference ExternalReference::re_check_stack_guard_state(
1363 Isolate* isolate) { 1347 Isolate* isolate) {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1702 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1719 state_.written_position = state_.current_position; 1703 state_.written_position = state_.current_position;
1720 written = true; 1704 written = true;
1721 } 1705 }
1722 1706
1723 // Return whether something was written. 1707 // Return whether something was written.
1724 return written; 1708 return written;
1725 } 1709 }
1726 1710
1727 } } // namespace v8::internal 1711 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698