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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 9373028: Initial support for count-based profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 years, 10 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/builtins-ia32.cc ('k') | src/ia32/deoptimizer-ia32.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 4555 matching lines...) Expand 10 before | Expand all | Expand 10 after
4566 __ cmp(scratch, kSymbolTag | kStringTag); 4566 __ cmp(scratch, kSymbolTag | kStringTag);
4567 __ j(not_equal, label); 4567 __ j(not_equal, label);
4568 } 4568 }
4569 4569
4570 4570
4571 void StackCheckStub::Generate(MacroAssembler* masm) { 4571 void StackCheckStub::Generate(MacroAssembler* masm) {
4572 __ TailCallRuntime(Runtime::kStackGuard, 0, 1); 4572 __ TailCallRuntime(Runtime::kStackGuard, 0, 1);
4573 } 4573 }
4574 4574
4575 4575
4576 void InterruptStub::Generate(MacroAssembler* masm) {
4577 __ TailCallRuntime(Runtime::kInterrupt, 0, 1);
4578 }
4579
4580
4576 static void GenerateRecordCallTarget(MacroAssembler* masm) { 4581 static void GenerateRecordCallTarget(MacroAssembler* masm) {
4577 // Cache the called function in a global property cell. Cache states 4582 // Cache the called function in a global property cell. Cache states
4578 // are uninitialized, monomorphic (indicated by a JSFunction), and 4583 // are uninitialized, monomorphic (indicated by a JSFunction), and
4579 // megamorphic. 4584 // megamorphic.
4580 // ebx : cache cell for call target 4585 // ebx : cache cell for call target
4581 // edi : the function to call 4586 // edi : the function to call
4582 Isolate* isolate = masm->isolate(); 4587 Isolate* isolate = masm->isolate();
4583 Label initialize, done; 4588 Label initialize, done;
4584 4589
4585 // Load the cache state into ecx. 4590 // Load the cache state into ecx.
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
7372 false); 7377 false);
7373 __ pop(edx); 7378 __ pop(edx);
7374 __ ret(0); 7379 __ ret(0);
7375 } 7380 }
7376 7381
7377 #undef __ 7382 #undef __
7378 7383
7379 } } // namespace v8::internal 7384 } } // namespace v8::internal
7380 7385
7381 #endif // V8_TARGET_ARCH_IA32 7386 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698