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

Side by Side Diff: src/full-codegen.h

Issue 7273066: Simplify EmitCallIC. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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/ia32/full-codegen-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 Scope* scope() { return info_->scope(); } 534 Scope* scope() { return info_->scope(); }
535 535
536 static Register result_register(); 536 static Register result_register();
537 static Register context_register(); 537 static Register context_register();
538 538
539 // Helper for calling an IC stub. 539 // Helper for calling an IC stub.
540 void EmitCallIC(Handle<Code> ic, 540 void EmitCallIC(Handle<Code> ic,
541 RelocInfo::Mode mode, 541 RelocInfo::Mode mode,
542 unsigned ast_id); 542 unsigned ast_id);
543 543
544 // Calling an IC stub with a patch site. Passing NULL for patch_site
545 // or non NULL patch_site which is not activated indicates no inlined smi code
546 // and emits a nop after the IC call.
547 void EmitCallIC(Handle<Code> ic,
548 JumpPatchSite* patch_site,
549 unsigned ast_id);
550
551 // Set fields in the stack frame. Offsets are the frame pointer relative 544 // Set fields in the stack frame. Offsets are the frame pointer relative
552 // offsets defined in, e.g., StandardFrameConstants. 545 // offsets defined in, e.g., StandardFrameConstants.
553 void StoreToFrameField(int frame_offset, Register value); 546 void StoreToFrameField(int frame_offset, Register value);
554 547
555 // Load a value from the current context. Indices are defined as an enum 548 // Load a value from the current context. Indices are defined as an enum
556 // in v8::internal::Context. 549 // in v8::internal::Context.
557 void LoadContextField(Register dst, int context_index); 550 void LoadContextField(Register dst, int context_index);
558 551
559 // Push the function argument for the runtime functions PushWithContext 552 // Push the function argument for the runtime functions PushWithContext
560 // and PushCatchContext. 553 // and PushCatchContext.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 762
770 friend class NestedStatement; 763 friend class NestedStatement;
771 764
772 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 765 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
773 }; 766 };
774 767
775 768
776 } } // namespace v8::internal 769 } } // namespace v8::internal
777 770
778 #endif // V8_FULL_CODEGEN_H_ 771 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698