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

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

Issue 2877018: Refactor type checks in v8natives.js and runtime.js.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/v8natives.js ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 // Instantiate the function based on the shared function info. 583 // Instantiate the function based on the shared function info.
584 void InstantiateFunction(Handle<SharedFunctionInfo> function_info); 584 void InstantiateFunction(Handle<SharedFunctionInfo> function_info);
585 585
586 // Support for type checks. 586 // Support for type checks.
587 void GenerateIsSmi(ZoneList<Expression*>* args); 587 void GenerateIsSmi(ZoneList<Expression*>* args);
588 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); 588 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args);
589 void GenerateIsArray(ZoneList<Expression*>* args); 589 void GenerateIsArray(ZoneList<Expression*>* args);
590 void GenerateIsRegExp(ZoneList<Expression*>* args); 590 void GenerateIsRegExp(ZoneList<Expression*>* args);
591 void GenerateIsObject(ZoneList<Expression*>* args); 591 void GenerateIsObject(ZoneList<Expression*>* args);
592 void GenerateIsSpecObject(ZoneList<Expression*>* args);
592 void GenerateIsFunction(ZoneList<Expression*>* args); 593 void GenerateIsFunction(ZoneList<Expression*>* args);
593 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); 594 void GenerateIsUndetectableObject(ZoneList<Expression*>* args);
594 595
595 // Support for construct call checks. 596 // Support for construct call checks.
596 void GenerateIsConstructCall(ZoneList<Expression*>* args); 597 void GenerateIsConstructCall(ZoneList<Expression*>* args);
597 598
598 // Support for arguments.length and arguments[?]. 599 // Support for arguments.length and arguments[?].
599 void GenerateArgumentsLength(ZoneList<Expression*>* args); 600 void GenerateArgumentsLength(ZoneList<Expression*>* args);
600 void GenerateArguments(ZoneList<Expression*>* args); 601 void GenerateArguments(ZoneList<Expression*>* args);
601 602
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 return ObjectBits::encode(object_.code()) | 1062 return ObjectBits::encode(object_.code()) |
1062 AddressBits::encode(addr_.code()) | 1063 AddressBits::encode(addr_.code()) |
1063 ScratchBits::encode(scratch_.code()); 1064 ScratchBits::encode(scratch_.code());
1064 } 1065 }
1065 }; 1066 };
1066 1067
1067 1068
1068 } } // namespace v8::internal 1069 } } // namespace v8::internal
1069 1070
1070 #endif // V8_X64_CODEGEN_X64_H_ 1071 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/v8natives.js ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698