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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 10706002: Implements a new API to set a function entry hook for profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make test non-threaded as it manipulates process-global state, and thus can't deterministically run… Created 8 years, 5 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/x64/full-codegen-x64.cc ('k') | test/cctest/test-api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int length = builder.position(); 121 int length = builder.position();
122 Vector<char> copy = Vector<char>::New(length + 1); 122 Vector<char> copy = Vector<char>::New(length + 1);
123 memcpy(copy.start(), builder.Finalize(), copy.length()); 123 memcpy(copy.start(), builder.Finalize(), copy.length());
124 masm()->RecordComment(copy.start()); 124 masm()->RecordComment(copy.start());
125 } 125 }
126 126
127 127
128 bool LCodeGen::GeneratePrologue() { 128 bool LCodeGen::GeneratePrologue() {
129 ASSERT(is_generating()); 129 ASSERT(is_generating());
130 130
131 ProfileEntryHookStub::MaybeCallEntryHook(masm_);
132
131 #ifdef DEBUG 133 #ifdef DEBUG
132 if (strlen(FLAG_stop_at) > 0 && 134 if (strlen(FLAG_stop_at) > 0 &&
133 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { 135 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
134 __ int3(); 136 __ int3();
135 } 137 }
136 #endif 138 #endif
137 139
138 // Strict mode functions need to replace the receiver with undefined 140 // Strict mode functions need to replace the receiver with undefined
139 // when called as functions (without an explicit receiver 141 // when called as functions (without an explicit receiver
140 // object). rcx is zero for method calls and non-zero for function 142 // object). rcx is zero for method calls and non-zero for function
(...skipping 4904 matching lines...) Expand 10 before | Expand all | Expand 10 after
5045 FixedArray::kHeaderSize - kPointerSize)); 5047 FixedArray::kHeaderSize - kPointerSize));
5046 __ bind(&done); 5048 __ bind(&done);
5047 } 5049 }
5048 5050
5049 5051
5050 #undef __ 5052 #undef __
5051 5053
5052 } } // namespace v8::internal 5054 } } // namespace v8::internal
5053 5055
5054 #endif // V8_TARGET_ARCH_X64 5056 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698