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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/full-codegen-arm.cc ('k') | src/code-stubs.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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 size_t length = builder.position(); 120 size_t length = builder.position();
121 Vector<char> copy = Vector<char>::New(length + 1); 121 Vector<char> copy = Vector<char>::New(length + 1);
122 memcpy(copy.start(), builder.Finalize(), copy.length()); 122 memcpy(copy.start(), builder.Finalize(), copy.length());
123 masm()->RecordComment(copy.start()); 123 masm()->RecordComment(copy.start());
124 } 124 }
125 125
126 126
127 bool LCodeGen::GeneratePrologue() { 127 bool LCodeGen::GeneratePrologue() {
128 ASSERT(is_generating()); 128 ASSERT(is_generating());
129 129
130 ProfileEntryHookStub::MaybeCallEntryHook(masm_);
131
130 #ifdef DEBUG 132 #ifdef DEBUG
131 if (strlen(FLAG_stop_at) > 0 && 133 if (strlen(FLAG_stop_at) > 0 &&
132 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { 134 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
133 __ stop("stop_at"); 135 __ stop("stop_at");
134 } 136 }
135 #endif 137 #endif
136 138
137 // r1: Callee's JS function. 139 // r1: Callee's JS function.
138 // cp: Callee's context. 140 // cp: Callee's context.
139 // fp: Caller's frame pointer. 141 // fp: Caller's frame pointer.
(...skipping 5261 matching lines...) Expand 10 before | Expand all | Expand 10 after
5401 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5402 __ ldr(result, FieldMemOperand(scratch, 5404 __ ldr(result, FieldMemOperand(scratch,
5403 FixedArray::kHeaderSize - kPointerSize)); 5405 FixedArray::kHeaderSize - kPointerSize));
5404 __ bind(&done); 5406 __ bind(&done);
5405 } 5407 }
5406 5408
5407 5409
5408 #undef __ 5410 #undef __
5409 5411
5410 } } // namespace v8::internal 5412 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698