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

Side by Side Diff: src/x64/codegen-x64.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/macros.py ('k') | src/x64/codegen-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // name/value pairs. 503 // name/value pairs.
504 void DeclareGlobals(Handle<FixedArray> pairs); 504 void DeclareGlobals(Handle<FixedArray> pairs);
505 505
506 // Instantiate the function boilerplate. 506 // Instantiate the function boilerplate.
507 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); 507 void InstantiateBoilerplate(Handle<JSFunction> boilerplate);
508 508
509 // Support for type checks. 509 // Support for type checks.
510 void GenerateIsSmi(ZoneList<Expression*>* args); 510 void GenerateIsSmi(ZoneList<Expression*>* args);
511 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); 511 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args);
512 void GenerateIsArray(ZoneList<Expression*>* args); 512 void GenerateIsArray(ZoneList<Expression*>* args);
513 void GenerateIsObject(ZoneList<Expression*>* args);
514 void GenerateIsFunction(ZoneList<Expression*>* args);
513 515
514 // Support for construct call checks. 516 // Support for construct call checks.
515 void GenerateIsConstructCall(ZoneList<Expression*>* args); 517 void GenerateIsConstructCall(ZoneList<Expression*>* args);
516 518
517 // Support for arguments.length and arguments[?]. 519 // Support for arguments.length and arguments[?].
518 void GenerateArgumentsLength(ZoneList<Expression*>* args); 520 void GenerateArgumentsLength(ZoneList<Expression*>* args);
519 void GenerateArgumentsAccess(ZoneList<Expression*>* args); 521 void GenerateArgumentsAccess(ZoneList<Expression*>* args);
520 522
521 // Support for accessing the class and value fields of an object. 523 // Support for accessing the class and value fields of an object.
522 void GenerateClassOf(ZoneList<Expression*>* args); 524 void GenerateClassOf(ZoneList<Expression*>* args);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 void SetArgsReversed() { args_reversed_ = true; } 738 void SetArgsReversed() { args_reversed_ = true; }
737 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 739 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
738 bool HasArgumentsInRegisters() { return args_in_registers_; } 740 bool HasArgumentsInRegisters() { return args_in_registers_; }
739 bool HasArgumentsReversed() { return args_reversed_; } 741 bool HasArgumentsReversed() { return args_reversed_; }
740 }; 742 };
741 743
742 744
743 } } // namespace v8::internal 745 } } // namespace v8::internal
744 746
745 #endif // V8_X64_CODEGEN_X64_H_ 747 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698