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

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

Issue 652224: Proof-of-concept RegExp-cache for exec, test, replace. (Closed)
Patch Set: Cache regexp operations. Created 10 years, 9 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
« 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 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 // Support for direct calls from JavaScript to native RegExp code. 585 // Support for direct calls from JavaScript to native RegExp code.
586 void GenerateRegExpExec(ZoneList<Expression*>* args); 586 void GenerateRegExpExec(ZoneList<Expression*>* args);
587 587
588 // Fast support for number to string. 588 // Fast support for number to string.
589 void GenerateNumberToString(ZoneList<Expression*>* args); 589 void GenerateNumberToString(ZoneList<Expression*>* args);
590 590
591 // Fast call to transcendental functions. 591 // Fast call to transcendental functions.
592 void GenerateMathSin(ZoneList<Expression*>* args); 592 void GenerateMathSin(ZoneList<Expression*>* args);
593 void GenerateMathCos(ZoneList<Expression*>* args); 593 void GenerateMathCos(ZoneList<Expression*>* args);
594 594
595 void GenerateIsIdentical(ZoneList<Expression*>* args);
596 void GenerateRegExpId(ZoneList<Expression*>* args);
597
595 // Simple condition analysis. 598 // Simple condition analysis.
596 enum ConditionAnalysis { 599 enum ConditionAnalysis {
597 ALWAYS_TRUE, 600 ALWAYS_TRUE,
598 ALWAYS_FALSE, 601 ALWAYS_FALSE,
599 DONT_KNOW 602 DONT_KNOW
600 }; 603 };
601 ConditionAnalysis AnalyzeCondition(Expression* cond); 604 ConditionAnalysis AnalyzeCondition(Expression* cond);
602 605
603 // Methods used to indicate which source code is generated for. Source 606 // Methods used to indicate which source code is generated for. Source
604 // positions are collected by the assembler and emitted with the relocation 607 // positions are collected by the assembler and emitted with the relocation
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 void Print() { 920 void Print() {
918 PrintF("NumberToStringStub\n"); 921 PrintF("NumberToStringStub\n");
919 } 922 }
920 #endif 923 #endif
921 }; 924 };
922 925
923 926
924 } } // namespace v8::internal 927 } } // namespace v8::internal
925 928
926 #endif // V8_IA32_CODEGEN_IA32_H_ 929 #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