| Index: src/v8memory.h
|
| diff --git a/src/v8memory.h b/src/v8memory.h
|
| index 901e78d2960a967ea59bcc628d77716ede0056ae..f71de82072ec4b72700f5d3e9563e79da45e52ae 100644
|
| --- a/src/v8memory.h
|
| +++ b/src/v8memory.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -60,6 +60,10 @@ class Memory {
|
| return *reinterpret_cast<int*>(addr);
|
| }
|
|
|
| + static unsigned& unsigned_at(Address addr) {
|
| + return *reinterpret_cast<unsigned*>(addr);
|
| + }
|
| +
|
| static double& double_at(Address addr) {
|
| return *reinterpret_cast<double*>(addr);
|
| }
|
|
|