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

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

Issue 10795021: MIPS: 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: 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/mips/full-codegen-mips.cc ('k') | no next file » | 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 size_t length = builder.position(); 118 size_t length = builder.position();
119 Vector<char> copy = Vector<char>::New(length + 1); 119 Vector<char> copy = Vector<char>::New(length + 1);
120 memcpy(copy.start(), builder.Finalize(), copy.length()); 120 memcpy(copy.start(), builder.Finalize(), copy.length());
121 masm()->RecordComment(copy.start()); 121 masm()->RecordComment(copy.start());
122 } 122 }
123 123
124 124
125 bool LCodeGen::GeneratePrologue() { 125 bool LCodeGen::GeneratePrologue() {
126 ASSERT(is_generating()); 126 ASSERT(is_generating());
127 127
128 ProfileEntryHookStub::MaybeCallEntryHook(masm_);
129
128 #ifdef DEBUG 130 #ifdef DEBUG
129 if (strlen(FLAG_stop_at) > 0 && 131 if (strlen(FLAG_stop_at) > 0 &&
130 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { 132 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
131 __ stop("stop_at"); 133 __ stop("stop_at");
132 } 134 }
133 #endif 135 #endif
134 136
135 // a1: Callee's JS function. 137 // a1: Callee's JS function.
136 // cp: Callee's context. 138 // cp: Callee's context.
137 // fp: Caller's frame pointer. 139 // fp: Caller's frame pointer.
(...skipping 5069 matching lines...) Expand 10 before | Expand all | Expand 10 after
5207 __ Subu(scratch, result, scratch); 5209 __ Subu(scratch, result, scratch);
5208 __ lw(result, FieldMemOperand(scratch, 5210 __ lw(result, FieldMemOperand(scratch,
5209 FixedArray::kHeaderSize - kPointerSize)); 5211 FixedArray::kHeaderSize - kPointerSize));
5210 __ bind(&done); 5212 __ bind(&done);
5211 } 5213 }
5212 5214
5213 5215
5214 #undef __ 5216 #undef __
5215 5217
5216 } } // namespace v8::internal 5218 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698