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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/full-codegen-ia32.cc ('k') | src/x64/code-stubs-x64.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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 size_t length = builder.position(); 128 size_t length = builder.position();
129 Vector<char> copy = Vector<char>::New(length + 1); 129 Vector<char> copy = Vector<char>::New(length + 1);
130 memcpy(copy.start(), builder.Finalize(), copy.length()); 130 memcpy(copy.start(), builder.Finalize(), copy.length());
131 masm()->RecordComment(copy.start()); 131 masm()->RecordComment(copy.start());
132 } 132 }
133 133
134 134
135 bool LCodeGen::GeneratePrologue() { 135 bool LCodeGen::GeneratePrologue() {
136 ASSERT(is_generating()); 136 ASSERT(is_generating());
137 137
138 ProfileEntryHookStub::MaybeCallEntryHook(masm_);
139
138 #ifdef DEBUG 140 #ifdef DEBUG
139 if (strlen(FLAG_stop_at) > 0 && 141 if (strlen(FLAG_stop_at) > 0 &&
140 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { 142 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
141 __ int3(); 143 __ int3();
142 } 144 }
143 #endif 145 #endif
144 146
145 // Strict mode functions and builtins need to replace the receiver 147 // Strict mode functions and builtins need to replace the receiver
146 // with undefined when called as functions (without an explicit 148 // with undefined when called as functions (without an explicit
147 // receiver object). ecx is zero for method calls and non-zero for 149 // receiver object). ecx is zero for method calls and non-zero for
(...skipping 5184 matching lines...) Expand 10 before | Expand all | Expand 10 after
5332 FixedArray::kHeaderSize - kPointerSize)); 5334 FixedArray::kHeaderSize - kPointerSize));
5333 __ bind(&done); 5335 __ bind(&done);
5334 } 5336 }
5335 5337
5336 5338
5337 #undef __ 5339 #undef __
5338 5340
5339 } } // namespace v8::internal 5341 } } // namespace v8::internal
5340 5342
5341 #endif // V8_TARGET_ARCH_IA32 5343 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698