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

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

Issue 399111: Implement IS_OBJECT and IS_FUNCTION as inlined runtime functions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/codegen.cc ('k') | src/ia32/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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // name/value pairs. 505 // name/value pairs.
506 void DeclareGlobals(Handle<FixedArray> pairs); 506 void DeclareGlobals(Handle<FixedArray> pairs);
507 507
508 // Instantiate the function boilerplate. 508 // Instantiate the function boilerplate.
509 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); 509 void InstantiateBoilerplate(Handle<JSFunction> boilerplate);
510 510
511 // Support for type checks. 511 // Support for type checks.
512 void GenerateIsSmi(ZoneList<Expression*>* args); 512 void GenerateIsSmi(ZoneList<Expression*>* args);
513 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); 513 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args);
514 void GenerateIsArray(ZoneList<Expression*>* args); 514 void GenerateIsArray(ZoneList<Expression*>* args);
515 void GenerateIsObject(ZoneList<Expression*>* args);
516 void GenerateIsFunction(ZoneList<Expression*>* args);
515 517
516 // Support for construct call checks. 518 // Support for construct call checks.
517 void GenerateIsConstructCall(ZoneList<Expression*>* args); 519 void GenerateIsConstructCall(ZoneList<Expression*>* args);
518 520
519 // Support for arguments.length and arguments[?]. 521 // Support for arguments.length and arguments[?].
520 void GenerateArgumentsLength(ZoneList<Expression*>* args); 522 void GenerateArgumentsLength(ZoneList<Expression*>* args);
521 void GenerateArgumentsAccess(ZoneList<Expression*>* args); 523 void GenerateArgumentsAccess(ZoneList<Expression*>* args);
522 524
523 // Support for accessing the class and value fields of an object. 525 // Support for accessing the class and value fields of an object.
524 void GenerateClassOf(ZoneList<Expression*>* args); 526 void GenerateClassOf(ZoneList<Expression*>* args);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 void SetArgsReversed() { args_reversed_ = true; } 733 void SetArgsReversed() { args_reversed_ = true; }
732 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 734 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
733 bool HasArgumentsInRegisters() { return args_in_registers_; } 735 bool HasArgumentsInRegisters() { return args_in_registers_; }
734 bool HasArgumentsReversed() { return args_reversed_; } 736 bool HasArgumentsReversed() { return args_reversed_; }
735 }; 737 };
736 738
737 739
738 } } // namespace v8::internal 740 } } // namespace v8::internal
739 741
740 #endif // V8_IA32_CODEGEN_IA32_H_ 742 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698