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

Side by Side Diff: src/assembler.cc

Issue 6321012: Version 3.0.9... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 11 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/assembler.h ('k') | src/builtins.cc » ('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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 ExternalReference ExternalReference::debug_step_in_fp_address() { 910 ExternalReference ExternalReference::debug_step_in_fp_address() {
911 return ExternalReference(Debug::step_in_fp_addr()); 911 return ExternalReference(Debug::step_in_fp_addr());
912 } 912 }
913 #endif 913 #endif
914 914
915 915
916 void PositionsRecorder::RecordPosition(int pos) { 916 void PositionsRecorder::RecordPosition(int pos) {
917 ASSERT(pos != RelocInfo::kNoPosition); 917 ASSERT(pos != RelocInfo::kNoPosition);
918 ASSERT(pos >= 0); 918 ASSERT(pos >= 0);
919 state_.current_position = pos; 919 state_.current_position = pos;
920 #ifdef ENABLE_GDB_JIT_INTERFACE
921 if (gdbjit_lineinfo_ != NULL) {
922 gdbjit_lineinfo_->SetPosition(assembler_->pc_offset(), pos, false);
923 }
924 #endif
920 } 925 }
921 926
922 927
923 void PositionsRecorder::RecordStatementPosition(int pos) { 928 void PositionsRecorder::RecordStatementPosition(int pos) {
924 ASSERT(pos != RelocInfo::kNoPosition); 929 ASSERT(pos != RelocInfo::kNoPosition);
925 ASSERT(pos >= 0); 930 ASSERT(pos >= 0);
926 state_.current_statement_position = pos; 931 state_.current_statement_position = pos;
932 #ifdef ENABLE_GDB_JIT_INTERFACE
933 if (gdbjit_lineinfo_ != NULL) {
934 gdbjit_lineinfo_->SetPosition(assembler_->pc_offset(), pos, true);
935 }
936 #endif
927 } 937 }
928 938
929 939
930 bool PositionsRecorder::WriteRecordedPositions() { 940 bool PositionsRecorder::WriteRecordedPositions() {
931 bool written = false; 941 bool written = false;
932 942
933 // Write the statement position if it is different from what was written last 943 // Write the statement position if it is different from what was written last
934 // time. 944 // time.
935 if (state_.current_statement_position != state_.written_statement_position) { 945 if (state_.current_statement_position != state_.written_statement_position) {
936 EnsureSpace ensure_space(assembler_); 946 EnsureSpace ensure_space(assembler_);
(...skipping 11 matching lines...) Expand all
948 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 958 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
949 state_.written_position = state_.current_position; 959 state_.written_position = state_.current_position;
950 written = true; 960 written = true;
951 } 961 }
952 962
953 // Return whether something was written. 963 // Return whether something was written.
954 return written; 964 return written;
955 } 965 }
956 966
957 } } // namespace v8::internal 967 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698