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

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

Issue 6880268: Sometimes avoid checking whether the receiver is an object in generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed int3. Created 9 years, 7 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // Record the OSR AST id corresponding to a stack check in the code. 388 // Record the OSR AST id corresponding to a stack check in the code.
389 void RecordStackCheck(int osr_ast_id); 389 void RecordStackCheck(int osr_ast_id);
390 // Emit a table of stack check ids and pcs into the code stream. Return 390 // Emit a table of stack check ids and pcs into the code stream. Return
391 // the offset of the start of the table. 391 // the offset of the start of the table.
392 unsigned EmitStackCheckTable(); 392 unsigned EmitStackCheckTable();
393 393
394 // Platform-specific return sequence 394 // Platform-specific return sequence
395 void EmitReturnSequence(); 395 void EmitReturnSequence();
396 396
397 // Platform-specific code sequences for calls 397 // Platform-specific code sequences for calls
398 void EmitCallWithStub(Call* expr); 398 void EmitCallWithStub(Call* expr, CallFunctionFlags flags);
399 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); 399 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode);
400 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode); 400 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode);
401 401
402 // Platform-specific code for inline runtime calls. 402 // Platform-specific code for inline runtime calls.
403 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); 403 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id);
404 404
405 void EmitInlineRuntimeCall(CallRuntime* expr); 405 void EmitInlineRuntimeCall(CallRuntime* expr);
406 406
407 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ 407 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \
408 void Emit##name(ZoneList<Expression*>* arguments); 408 void Emit##name(ZoneList<Expression*>* arguments);
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 749
750 friend class NestedStatement; 750 friend class NestedStatement;
751 751
752 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 752 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
753 }; 753 };
754 754
755 755
756 } } // namespace v8::internal 756 } } // namespace v8::internal
757 757
758 #endif // V8_FULL_CODEGEN_H_ 758 #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