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

Side by Side Diff: runtime/vm/code_generator.cc

Issue 10536067: Generate code for store buffer updates in open-coded object field stores. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: adjust filter conditions Created 8 years, 6 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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler_macros.h" 7 #include "vm/assembler_macros.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 } 1554 }
1555 } 1555 }
1556 } 1556 }
1557 } 1557 }
1558 // The cache is null terminated, therefore the loop above should never 1558 // The cache is null terminated, therefore the loop above should never
1559 // terminate by itself. 1559 // terminate by itself.
1560 UNREACHABLE(); 1560 UNREACHABLE();
1561 return Code::null(); 1561 return Code::null();
1562 } 1562 }
1563 1563
1564
1565 // Adds a pointer to the store buffer.
1566 // Arg0: pointer
1567 DEFINE_RUNTIME_ENTRY(StoreBuffer, 1) {
Ivan Posva 2012/06/08 14:39:55 This then would be StoreBuffer_Process.
1568 ASSERT(arguments.Count() == kStoreBufferRuntimeEntry.argument_count());
1569 RawObject* dest = arguments.At(0);
srdjan 2012/06/08 05:46:59 You may want to do Object::CheckedHandle so that y
cshapiro 2012/06/08 23:48:04 Unfortunately, I cannot. dest is not an object, i
1570 uword ptr = reinterpret_cast<uword>(dest);
1571 Isolate::Current()->store_buffer()->AddPointer(ptr);
siva 2012/06/08 17:26:01 isolate->store_buffer().... isolate is a param to
cshapiro 2012/06/08 23:48:04 Fixed.
1572 }
1573
1564 } // namespace dart 1574 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698