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

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

Issue 8139027: Version 3.6.5 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 9 years, 2 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/frames-inl.h ('k') | src/full-codegen.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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 VisitInCurrentContext(expr); 384 VisitInCurrentContext(expr);
385 } 385 }
386 386
387 void VisitDeclarations(ZoneList<Declaration*>* declarations); 387 void VisitDeclarations(ZoneList<Declaration*>* declarations);
388 void DeclareGlobals(Handle<FixedArray> pairs); 388 void DeclareGlobals(Handle<FixedArray> pairs);
389 int DeclareGlobalsFlags(); 389 int DeclareGlobalsFlags();
390 390
391 // Try to perform a comparison as a fast inlined literal compare if 391 // Try to perform a comparison as a fast inlined literal compare if
392 // the operands allow it. Returns true if the compare operations 392 // the operands allow it. Returns true if the compare operations
393 // has been matched and all code generated; false otherwise. 393 // has been matched and all code generated; false otherwise.
394 bool TryLiteralCompare(CompareOperation* compare, 394 bool TryLiteralCompare(CompareOperation* compare);
395 Label* if_true,
396 Label* if_false,
397 Label* fall_through);
398 395
399 // Platform-specific code for comparing the type of a value with 396 // Platform-specific code for comparing the type of a value with
400 // a given literal string. 397 // a given literal string.
401 void EmitLiteralCompareTypeof(Expression* expr, 398 void EmitLiteralCompareTypeof(Expression* expr, Handle<String> check);
402 Handle<String> check,
403 Label* if_true,
404 Label* if_false,
405 Label* fall_through);
406 399
407 // Platform-specific code for strict equality comparison with 400 // Platform-specific code for equality comparison with a nil-like value.
408 // the undefined value. 401 void EmitLiteralCompareNil(CompareOperation* expr,
409 void EmitLiteralCompareUndefined(Expression* expr, 402 Expression* sub_expr,
410 Label* if_true, 403 NilValue nil);
411 Label* if_false,
412 Label* fall_through);
413 404
414 // Bailout support. 405 // Bailout support.
415 void PrepareForBailout(Expression* node, State state); 406 void PrepareForBailout(Expression* node, State state);
416 void PrepareForBailoutForId(int id, State state); 407 void PrepareForBailoutForId(int id, State state);
417 408
418 // Record a call's return site offset, used to rebuild the frame if the 409 // Record a call's return site offset, used to rebuild the frame if the
419 // called function was inlined at the site. 410 // called function was inlined at the site.
420 void RecordJSReturnSite(Call* call); 411 void RecordJSReturnSite(Call* call);
421 412
422 // Prepare for bailout before a test (or compare) and branch. If 413 // Prepare for bailout before a test (or compare) and branch. If
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 824
834 friend class NestedStatement; 825 friend class NestedStatement;
835 826
836 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 827 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
837 }; 828 };
838 829
839 830
840 } } // namespace v8::internal 831 } } // namespace v8::internal
841 832
842 #endif // V8_FULL_CODEGEN_H_ 833 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698