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

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

Issue 113457: Try to preallocate the scratch registers used for inlined keyed loads... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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/codegen.h ('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 25 matching lines...) Expand all
36 36
37 37
38 void DeferredCode::SetEntryFrame(Result* arg) { 38 void DeferredCode::SetEntryFrame(Result* arg) {
39 ASSERT(generator()->has_valid_frame()); 39 ASSERT(generator()->has_valid_frame());
40 generator()->frame()->Push(arg); 40 generator()->frame()->Push(arg);
41 enter()->set_entry_frame(new VirtualFrame(generator()->frame())); 41 enter()->set_entry_frame(new VirtualFrame(generator()->frame()));
42 *arg = generator()->frame()->Pop(); 42 *arg = generator()->frame()->Pop();
43 } 43 }
44 44
45 45
46 void DeferredCode::SetEntryFrame(Result* arg0, Result* arg1) {
47 ASSERT(generator()->has_valid_frame());
48 generator()->frame()->Push(arg0);
49 generator()->frame()->Push(arg1);
50 enter()->set_entry_frame(new VirtualFrame(generator()->frame()));
51 *arg1 = generator()->frame()->Pop();
52 *arg0 = generator()->frame()->Pop();
53 }
54
55
46 // ----------------------------------------------------------------------------- 56 // -----------------------------------------------------------------------------
47 // Support for "structured" code comments. 57 // Support for "structured" code comments.
48 // 58 //
49 // By selecting matching brackets in disassembler output, 59 // By selecting matching brackets in disassembler output,
50 // code segments can be identified more easily. 60 // code segments can be identified more easily.
51 61
52 #ifdef DEBUG 62 #ifdef DEBUG
53 63
54 class Comment BASE_EMBEDDED { 64 class Comment BASE_EMBEDDED {
55 public: 65 public:
(...skipping 19 matching lines...) Expand all
75 public: 85 public:
76 Comment(MacroAssembler*, const char*) {} 86 Comment(MacroAssembler*, const char*) {}
77 }; 87 };
78 88
79 #endif // DEBUG 89 #endif // DEBUG
80 90
81 91
82 } } // namespace v8::internal 92 } } // namespace v8::internal
83 93
84 #endif // V8_CODEGEN_INL_H_ 94 #endif // V8_CODEGEN_INL_H_
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698