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

Side by Side Diff: src/virtual-frame-light.cc

Issue 1604002: Simple register allocation for ARM. Only top of expression... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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
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 18 matching lines...) Expand all
29 29
30 #include "codegen-inl.h" 30 #include "codegen-inl.h"
31 #include "register-allocator-inl.h" 31 #include "register-allocator-inl.h"
32 #include "virtual-frame-inl.h" 32 #include "virtual-frame-inl.h"
33 33
34 namespace v8 { 34 namespace v8 {
35 namespace internal { 35 namespace internal {
36 36
37 void VirtualFrame::Adjust(int count) { 37 void VirtualFrame::Adjust(int count) {
38 ASSERT(count >= 0); 38 ASSERT(count >= 0);
39 ASSERT(stack_pointer_ == element_count() - 1);
40
41 element_count_ += count; 39 element_count_ += count;
42 stack_pointer_ += count;
43 } 40 }
44 41
45 42
46 // Make the type of the element at a given index be MEMORY. 43 // If there are any registers referenced only by the frame, spill one.
47 void VirtualFrame::SpillElementAt(int index) { 44 Register VirtualFrame::SpillAnyRegister() {
48 UNIMPLEMENTED(); 45 UNIMPLEMENTED();
46 return no_reg;
49 } 47 }
50 48
51
52 } } // namespace v8::internal 49 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698